mirror of
https://github.com/OpenLogics/MewtocolNet.git
synced 2025-12-06 03:01:24 +00:00
Fix some of the old tests
- add new examples - fix struct builder - complete array interfaces
This commit is contained in:
@@ -1,22 +0,0 @@
|
||||
using MewtocolNet;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace MewtocolTests.EncapsulatedTests;
|
||||
|
||||
internal class RegisterReadWriteTest {
|
||||
|
||||
public IRegister TargetRegister { get; set; }
|
||||
|
||||
public object IntialValue { get; set; }
|
||||
|
||||
public object IntermediateValue { get; set; }
|
||||
|
||||
public object AfterWriteValue { get; set; }
|
||||
|
||||
public string RegisterPlcAddressName { get; set; }
|
||||
|
||||
}
|
||||
@@ -4,7 +4,7 @@ using System.Collections;
|
||||
|
||||
namespace MewtocolTests.EncapsulatedTests {
|
||||
|
||||
public enum CurrentState : short {
|
||||
public enum CurrentState16 : short {
|
||||
Undefined = 0,
|
||||
State1 = 1,
|
||||
State2 = 2,
|
||||
@@ -51,7 +51,7 @@ namespace MewtocolTests.EncapsulatedTests {
|
||||
public ushort UInt16Type { get; set; }
|
||||
|
||||
[Register("DT50")]
|
||||
public CurrentState Enum16Type { get; set; }
|
||||
public CurrentState16 Enum16Type { get; set; }
|
||||
|
||||
}
|
||||
|
||||
@@ -95,8 +95,6 @@ namespace MewtocolTests.EncapsulatedTests {
|
||||
|
||||
public class TestBitwiseRegisters : RegisterCollection {
|
||||
|
||||
[Register("DT7000")]
|
||||
public BitArray BitArr16 { get; set; }
|
||||
|
||||
//[Register("DT7001")]
|
||||
//public BitArray BitArr32 { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user