mirror of
https://github.com/OpenLogics/MewtocolNet.git
synced 2025-12-06 03:01:24 +00:00
Added serial port support
- complete restructure of codebase
This commit is contained in:
@@ -109,7 +109,7 @@ namespace MewtocolTests {
|
||||
[Fact(DisplayName = "Boolean R generation")]
|
||||
public void BooleanGen() {
|
||||
|
||||
var interf = new MewtocolInterface("192.168.0.1");
|
||||
var interf = new MewtocolInterfaceShared("192.168.0.1");
|
||||
interf.WithRegisterCollection(new TestRegisterCollection()).WithPoller();
|
||||
|
||||
var register = interf.GetRegister(nameof(TestRegisterCollection.TestBool1));
|
||||
@@ -122,7 +122,7 @@ namespace MewtocolTests {
|
||||
[Fact(DisplayName = "Boolean input XD generation")]
|
||||
public void BooleanInputGen() {
|
||||
|
||||
var interf = new MewtocolInterface("192.168.0.1");
|
||||
var interf = new MewtocolInterfaceShared("192.168.0.1");
|
||||
interf.WithRegisterCollection(new TestRegisterCollection()).WithPoller();
|
||||
|
||||
var register = interf.GetRegister(nameof(TestRegisterCollection.TestBoolInputXD));
|
||||
@@ -135,7 +135,7 @@ namespace MewtocolTests {
|
||||
[Fact(DisplayName = "Int16 generation")]
|
||||
public void Int16Gen() {
|
||||
|
||||
var interf = new MewtocolInterface("192.168.0.1");
|
||||
var interf = new MewtocolInterfaceShared("192.168.0.1");
|
||||
interf.WithRegisterCollection(new TestRegisterCollection()).WithPoller();
|
||||
|
||||
var register = interf.GetRegister(nameof(TestRegisterCollection.TestInt16));
|
||||
@@ -148,7 +148,7 @@ namespace MewtocolTests {
|
||||
[Fact(DisplayName = "UInt16 generation")]
|
||||
public void UInt16Gen() {
|
||||
|
||||
var interf = new MewtocolInterface("192.168.0.1");
|
||||
var interf = new MewtocolInterfaceShared("192.168.0.1");
|
||||
interf.WithRegisterCollection(new TestRegisterCollection()).WithPoller();
|
||||
|
||||
var register = interf.GetRegister(nameof(TestRegisterCollection.TestUInt16));
|
||||
@@ -161,7 +161,7 @@ namespace MewtocolTests {
|
||||
[Fact(DisplayName = "Int32 generation")]
|
||||
public void Int32Gen() {
|
||||
|
||||
var interf = new MewtocolInterface("192.168.0.1");
|
||||
var interf = new MewtocolInterfaceShared("192.168.0.1");
|
||||
interf.WithRegisterCollection(new TestRegisterCollection()).WithPoller();
|
||||
|
||||
var register = interf.GetRegister(nameof(TestRegisterCollection.TestInt32));
|
||||
@@ -174,7 +174,7 @@ namespace MewtocolTests {
|
||||
[Fact(DisplayName = "UInt32 generation")]
|
||||
public void UInt32Gen() {
|
||||
|
||||
var interf = new MewtocolInterface("192.168.0.1");
|
||||
var interf = new MewtocolInterfaceShared("192.168.0.1");
|
||||
interf.WithRegisterCollection(new TestRegisterCollection()).WithPoller();
|
||||
|
||||
var register = interf.GetRegister(nameof(TestRegisterCollection.TestUInt32));
|
||||
@@ -187,7 +187,7 @@ namespace MewtocolTests {
|
||||
[Fact(DisplayName = "Float32 generation")]
|
||||
public void Float32Gen() {
|
||||
|
||||
var interf = new MewtocolInterface("192.168.0.1");
|
||||
var interf = new MewtocolInterfaceShared("192.168.0.1");
|
||||
interf.WithRegisterCollection(new TestRegisterCollection()).WithPoller();
|
||||
|
||||
var register = interf.GetRegister(nameof(TestRegisterCollection.TestFloat32));
|
||||
@@ -200,7 +200,7 @@ namespace MewtocolTests {
|
||||
[Fact(DisplayName = "TimeSpan generation")]
|
||||
public void TimespanGen() {
|
||||
|
||||
var interf = new MewtocolInterface("192.168.0.1");
|
||||
var interf = new MewtocolInterfaceShared("192.168.0.1");
|
||||
interf.WithRegisterCollection(new TestRegisterCollection()).WithPoller();
|
||||
|
||||
var register = interf.GetRegister(nameof(TestRegisterCollection.TestTime));
|
||||
|
||||
Reference in New Issue
Block a user