Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix an issue where the server is closed #18

Merged
merged 2 commits into from
Jun 16, 2024

test: Add the callback none test and improve the callback test

e72a795
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Merged

Fix an issue where the server is closed #18

test: Add the callback none test and improve the callback test
e72a795
Select commit
Loading
Failed to load commit list.
GitHub Actions / XUnit Tests succeeded Jun 16, 2024 in 0s

95 passed, 0 failed and 0 skipped

Tests passed successfully

✅ /home/runner/work/communication/communication/logs/test-results.trx

95 tests were completed in 10s with 95 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
JSSoft.Communication.Tests.CallbackNoneTest 1✅ 3s
JSSoft.Communication.Tests.CallbackTest 3✅ 39ms
JSSoft.Communication.Tests.ClientContextTest 16✅ 6s
JSSoft.Communication.Tests.DispatcherTest 11✅ 1s
JSSoft.Communication.Tests.Exceptions.ArgumentExceptionTest 5✅ 25ms
JSSoft.Communication.Tests.Exceptions.ArgumentNullExceptionTest 5✅ 23ms
JSSoft.Communication.Tests.Exceptions.ArgumentOutOfRangeExceptionTest 5✅ 48ms
JSSoft.Communication.Tests.Exceptions.IndexOutOfRangeExceptionTest 5✅ 22ms
JSSoft.Communication.Tests.Exceptions.InvalidOperationExceptionTest 5✅ 42ms
JSSoft.Communication.Tests.Exceptions.NotSupportedExceptionTest 5✅ 44ms
JSSoft.Communication.Tests.Exceptions.NullReferenceExceptionTest 5✅ 6s
JSSoft.Communication.Tests.Exceptions.ObjectDisposedExceptionTest 5✅ 42ms
JSSoft.Communication.Tests.InvokeTest 5✅ 25ms
JSSoft.Communication.Tests.ServerContextTest 15✅ 207ms
JSSoft.Communication.Tests.UnitTest1 4✅ 10s

✅ JSSoft.Communication.Tests.CallbackNoneTest

✅ Callback1_Test

✅ JSSoft.Communication.Tests.CallbackTest

✅ Callback1_TestAsync
✅ Callback2_TestAsync
✅ Callback3_TestAsync

✅ JSSoft.Communication.Tests.ClientContextTest

✅ Closed_TestAsync
✅ Constructor_Test
✅ Constructor_WithSameTypeServices_FailTest
✅ Disconnected_TestAsync
✅ EndPoint_Test
✅ Faulted_TestAsync
✅ Id_Test
✅ Open_Cancel_Abort_TestAsync
✅ Open_Close_Cancel_Abort_TestAsync
✅ Open_Close_Close_FailTestAsync
✅ Open_Close_TestAsync
✅ Open_CloseWithInvalidToken_FailTestAsync
✅ Open_Open_FailTestAsync
✅ Open_SetEndPoint_FailTestAsynx
✅ Opened_TestAsync
✅ ServiceStateChanged_TestAsync

✅ JSSoft.Communication.Tests.DispatcherTest

✅ Invoke_FailTest
✅ Invoke_Test
✅ InvokeAsync_FailTest
✅ InvokeAsync_Test
✅ InvokeGeneric_FailTest
✅ InvokeGeneric_Test
✅ InvokeGenericAsync_FailTest
✅ InvokeGenericAsync_Test
✅ InvokeGenericAsync_WaitTest
✅ Post_FailTest
✅ Post_Test

✅ JSSoft.Communication.Tests.Exceptions.ArgumentExceptionTest

✅ Invoke_Test
✅ InvokeAndReturnAsync_Test
✅ InvokeAndReturnAsyncWithCancellation_Test
✅ InvokeAsync_Test
✅ InvokeAsyncWithCancellation_Test

✅ JSSoft.Communication.Tests.Exceptions.ArgumentNullExceptionTest

✅ Invoke_Test
✅ InvokeAndReturnAsync_Test
✅ InvokeAndReturnAsyncWithCancellation_Test
✅ InvokeAsync_Test
✅ InvokeAsyncWithCancellation_Test

✅ JSSoft.Communication.Tests.Exceptions.ArgumentOutOfRangeExceptionTest

✅ Invoke_Test
✅ InvokeAndReturnAsync_Test
✅ InvokeAndReturnAsyncWithCancellation_Test
✅ InvokeAsync_Test
✅ InvokeAsyncWithCancellation_Test

✅ JSSoft.Communication.Tests.Exceptions.IndexOutOfRangeExceptionTest

✅ Invoke_Test
✅ InvokeAndReturnAsync_Test
✅ InvokeAndReturnAsyncWithCancellation_Test
✅ InvokeAsync_Test
✅ InvokeAsyncWithCancellation_Test

✅ JSSoft.Communication.Tests.Exceptions.InvalidOperationExceptionTest

✅ Invoke_Test
✅ InvokeAndReturnAsync_Test
✅ InvokeAndReturnAsyncWithCancellation_Test
✅ InvokeAsync_Test
✅ InvokeAsyncWithCancellation_Test

✅ JSSoft.Communication.Tests.Exceptions.NotSupportedExceptionTest

✅ Invoke_Test
✅ InvokeAndReturnAsync_Test
✅ InvokeAndReturnAsyncWithCancellation_Test
✅ InvokeAsync_Test
✅ InvokeAsyncWithCancellation_Test

✅ JSSoft.Communication.Tests.Exceptions.NullReferenceExceptionTest

✅ Invoke_Test
✅ InvokeAndReturnAsync_Test
✅ InvokeAndReturnAsyncWithCancellation_Test
✅ InvokeAsync_Test
✅ InvokeAsyncWithCancellation_Test

✅ JSSoft.Communication.Tests.Exceptions.ObjectDisposedExceptionTest

✅ Invoke_Test
✅ InvokeAndReturnAsync_Test
✅ InvokeAndReturnAsyncWithCancellation_Test
✅ InvokeAsync_Test
✅ InvokeAsyncWithCancellation_Test

✅ JSSoft.Communication.Tests.InvokeTest

✅ Invoke_Test
✅ InvokeAndReturnAsync_Test
✅ InvokeAndReturnAsyncWithCancellation_Test
✅ InvokeAsync_Test
✅ InvokeAsyncWithCancellation_Test

✅ JSSoft.Communication.Tests.ServerContextTest

✅ Closed_TestAsync
✅ Constructor_Test
✅ Constructor_WithSameTypeServices_FailTest
✅ EndPoint_Test
✅ Faulted_TestAsync
✅ Id_Test
✅ Open_Cancel_Abort_TestAsync
✅ Open_Close_Cancel_Abort_TestAsync
✅ Open_Close_Close_FailTestAsync
✅ Open_Close_TestAsync
✅ Open_CloseWithInvalidToken_FailTestAsync
✅ Open_Open_FailTestAsync
✅ Open_SetEndPoint_FailTestAsynx
✅ Opened_TestAsync
✅ ServiceStateChanged_TestAsync

✅ JSSoft.Communication.Tests.UnitTest1

✅ MultipleOpenAndClientCloseAsync
✅ OpenAndClientCloseAsync
✅ OpenAndInvokeAndClientCloseAsync
✅ OpenAndServerCloseAsync