Fix some of the old tests

- add new examples
- fix struct builder
- complete array interfaces
This commit is contained in:
Felix Weiß
2023-07-20 23:28:58 +02:00
parent 3a7b787949
commit 9bcffad77b
59 changed files with 2190 additions and 2101 deletions

View File

@@ -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; }
}

View File

@@ -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; }