Michael Croes
0774e124bf
test: Fix comments in write clock messages
2023-09-04 21:55:06 +02:00
Michael Croes
1ebffe08e7
test: Add Write_Clock_Value test
2023-08-31 19:55:57 +02:00
Michael Croes
2f2dcf7281
test: Raise ReadClock timeout to 1 second
2023-08-29 21:38:01 +02:00
Michael Croes
5e1ac8c7bf
test(ReadClock): Use template parameters for PDU bytes
2023-08-29 19:42:59 +02:00
Michael Croes
13544a1bcf
test: Add ReadClock test
2023-08-23 23:03:45 +02:00
Himmelt
2ec73224c1
Add SetBit method to modify one bit of a byte
2023-08-15 18:08:10 +08:00
Michael Croes
55aa06a1fc
Merge branch 'main' into timespan
2023-08-03 21:55:20 +02:00
Michael Croes
0797c5858f
chore: Update GitHubActionsTestLogger
2023-08-03 21:45:46 +02:00
Michael Croes
9b1faa0123
test: Add test for reading PLC status
2023-08-01 22:50:50 +02:00
Michael Croes
54dadec75a
test: Extract connection open templates
2023-08-01 22:50:21 +02:00
Michael Croes
8b8ad13464
test: Add ConnectionOpen communication test
2023-07-31 23:58:15 +02:00
Michael Croes
714ac62ab1
test: Add CommunicationSequence
2023-07-31 23:57:38 +02:00
Michael Croes
8126018afd
test: Fix target framework*s* specification
2023-07-25 23:17:25 +02:00
Michael Croes
4e4071f07f
test: Only target net462 on Windows
2023-07-24 22:04:18 +02:00
Michael Croes
7558b9a691
fix: Retarget test project to net462, net6.0 and net7.0
...
These are the frameworks currently used in the GitHub workflow, when
missing the tests aren't executed and the job will succeed nonetheless.
2023-07-23 22:53:11 +02:00
Dawid Pągowski
05ccb05f3a
Added TimeSpan tests
2023-07-19 20:57:14 +02:00
Dawid Pągowski
0d2817661e
Add S7 Time type (C# TimeSpan)
...
Adds the S7 TIME (IEC) type (32 bits long)
It is deserialized to C# TimeSpan and serialized as S7 DInt.
2023-07-19 20:30:32 +02:00
ArgusMagnus
e277cf6e6c
add Read/WriteBytes(Async) overloads accepting Span<byte>/Memory<byte> for .NET5 or greater
2023-05-30 10:47:38 +02:00
Michael Croes
868e719b78
Merge remote-tracking branch 's7netplus/develop' into fb-fixClassUint32
...
# Conflicts:
# S7.Net/Types/Class.cs
2022-12-10 21:09:29 +01:00
Mike Cremer
142f1ba90e
Added support string/wstring for class type
2022-12-10 18:59:25 +01:00
Serge Camille
8df1a9c8cb
Add unit test for ReadClass uint32 bug.
...
https://github.com/S7NetPlus/s7netplus/issues/414
2021-10-04 18:53:13 +02:00
Serge Camille
82a745c972
Merge branch 'develop' into test-ConnectionClose
2021-06-08 22:53:30 +02:00
Serge Camille
74fecad48d
Remove cancel timeouts.
2021-06-08 22:47:12 +02:00
Michael Croes
6e861d2f00
Merge branch 'develop' into tests-taskCanceled
2021-06-07 22:00:52 +02:00
Serge Camille
0d87dbf3c6
Add unit test to ensure a connection has been properly closed
...
If cancelled during data transmission, #349 adds code to ensure that the connection automatically gets cancelled.
Add inerted test to ensure that cancellation before sending data does not result in a cancellation.
2021-06-07 14:49:06 +02:00
Serge Camille
15f94cd7bf
Fix Cancellation test.
2021-06-07 14:13:04 +02:00
Michael Croes
36b59a2926
Cleanup whitespace, usings
2021-06-06 23:20:19 +02:00
Michael Croes
8d081859da
Remove unused sync methods
2021-06-06 23:19:56 +02:00
Michael Croes
b0a6a2375f
Merge branch 'develop' into multipleVarsAlignment
2021-06-06 22:49:33 +02:00
Michael Croes
66b693676c
Merge branch 'develop' into s7-200-cr
2021-06-06 22:32:41 +02:00
Serge Camille
a4b6a360fe
ParseDataIntoDataItems needs to always align the response address to a even value after each data item.
2021-06-06 22:16:59 +02:00
Serge Camille
0bef6bc9ff
Add unit test for the problem.
2021-06-06 21:59:39 +02:00
Michael Croes
cbe04fbfb4
Merge branch 'develop' into tsap
2021-06-06 21:19:17 +02:00
Serge Camille
fc9c33fdaf
Add Net5.0 to test project as well.
2021-06-05 17:59:18 +02:00
Michael Croes
2fae2c01d5
Add TsapPair support to PLC
...
Add support for custom addressing by supplying a TsapPair to the PLC.
CPU, Rack and Slot properties are still present to preserve backwards
compatibility and to support alternate functionality based on the PLC
type.
2021-06-04 22:25:05 +02:00
Michael Croes
616dc1094c
Refactor TSAP related code
2021-06-04 21:45:51 +02:00
Michael Croes
70bc1499ef
ConnectionRequestTest: Cleanup trailing whitespace
2021-06-02 23:03:23 +02:00
Michael Croes
fd9aeb5b3b
Fix unit test for S7 200
2021-06-02 23:03:06 +02:00
Michael Croes
e66d21af05
Add tests for Boolean.SetBit and Boolean.ClearBit
2021-05-10 20:49:15 +02:00
Michael Croes
2b4ec6d9dd
Remove IsAvailable
...
Addresses #275 , #252 , #208 , #154 .
2021-03-29 21:43:24 +02:00
diego
e6d14587d3
Added four new test methods to check ByteLength for S7 String types
2021-03-29 20:51:11 +02:00
Mike Cremer
fdd4519f64
Minor changes
2021-01-29 21:13:38 +01:00
Mike Cremer
de0a9e64dc
Added support for strings in Struct type class
2021-01-24 13:56:07 +01:00
Mike Cremer
dfcc4c7408
Added WString support
2021-01-24 12:16:32 +01:00
Serge Camille
1069641606
Add more extensive response code validation.
...
Fixes #310
2020-09-16 20:25:20 +02:00
Michael Croes
243e868488
Merge branch 'develop' into stringSerialization
2020-09-16 20:13:19 +02:00
Serge Camille
8f3c701a2f
Revert UnitTest IP address to 127.0.0.1.
...
Seems there are sometimes performance regressions when using localhost. Might be related to IPv6, who know.
Fix some TestContext not being public.
2020-09-13 10:28:06 +02:00
Serge Camille
023530322e
Remove Port 102 dependencies from Unit Test.
...
- Adjust readme.
- It is no longer be necessary to shut down service s7oiehsx64.
2020-09-13 10:15:53 +02:00
Serge Camille
9198fc1686
Test project: Enable netcore3.1 testing, switch win64 Snap7 and use custom port.
...
- Add netcoreapp3.1 target framework, allowing this to run on linux and macos as well.
- Switch windows snap7 DLL to 64bit version 1.4.2. This also improves UnitTest stability (reduces false positives) on the CI (including appveyor)
- Changing the port used for S7NetTests when communicating with Snap7 to a value > 1000 allows tests to run on Linux without elevated privileges.
2020-09-13 10:01:38 +02:00
Serge Camille
b088fe276b
Rename StringEx to S7String.
...
This name is already somewhat used in code and gives this a better name.
2020-09-12 19:27:15 +02:00