mirror of
https://github.com/evopro-ag/Sharp7Reactive.git
synced 2025-12-16 19:52:53 +00:00
Remove "S7" from some class names
This commit is contained in:
25
Sharp7.Rx.Tests/ValueConverterTests/ConvertBothWays.cs
Normal file
25
Sharp7.Rx.Tests/ValueConverterTests/ConvertBothWays.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using NUnit.Framework;
|
||||
using Shouldly;
|
||||
|
||||
namespace Sharp7.Rx.Tests.ValueConverterTests;
|
||||
|
||||
[TestFixture]
|
||||
internal class ConvertBothWays : ConverterTestBase
|
||||
{
|
||||
[TestCaseSource(nameof(GetValidTestCases))]
|
||||
public void Convert(ConverterTestCase tc)
|
||||
{
|
||||
//Arrange
|
||||
var buffer = new byte[tc.VariableAddress.BufferLength];
|
||||
|
||||
var write = CreateWriteMethod(tc);
|
||||
var read = CreateReadMethod(tc);
|
||||
|
||||
//Act
|
||||
write.Invoke(null, [buffer, tc.Value, tc.VariableAddress]);
|
||||
var result = read.Invoke(null, [buffer, tc.VariableAddress]);
|
||||
|
||||
//Assert
|
||||
result.ShouldBe(tc.Value);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user