nauful / LibUA

Open-source OPC UA client and server library
Apache License 2.0
262 stars 94 forks source link

Additional tests based on TestServer / TestClient #177

Closed bevanweiss closed 4 months ago

bevanweiss commented 4 months ago

Created a TestFixture based on the TestServer, this can then be used as the target for TestClient instances. Currently a TestClient is spun up PER test executed, which results in each test taking ~2s. I've created a separate TestClientFixture which could be used as a Class Fixture (https://xunit.net/docs/shared-context#class-fixture) to reduce the time impact of TestClient instantiation, at the cost of less separation of Client state between tests (within a Test Class).

Have also updated the test project dependencies.