diff --git a/neo.UnitTests/Network/RPC/UT_RpcClient.cs b/neo.UnitTests/Network/RPC/UT_RpcClient.cs index 24ed912e93..eb256cc6d1 100644 --- a/neo.UnitTests/Network/RPC/UT_RpcClient.cs +++ b/neo.UnitTests/Network/RPC/UT_RpcClient.cs @@ -570,7 +570,7 @@ public void TestConstructorByUrlAndDispose() //dummy url for test var client = new RpcClient("http://www.xxx.yyy"); Action action = () => client.Dispose(); - action.ShouldNotThrow(); + action.Should().NotThrow(); } } } diff --git a/neo.UnitTests/Network/RPC/UT_RpcServer.cs b/neo.UnitTests/Network/RPC/UT_RpcServer.cs index 931d7b1e17..fae945a21a 100644 --- a/neo.UnitTests/Network/RPC/UT_RpcServer.cs +++ b/neo.UnitTests/Network/RPC/UT_RpcServer.cs @@ -41,8 +41,8 @@ public void TestMaxGasInvoke() [TestMethod] public void TestStart() { - Action action = () => server.Start(IPAddress.Parse("127.0.0.1"), 8080); - action.ShouldNotThrow(); + Action action = () => server.Start(IPAddress.Parse("127.0.0.1"), 8999); + action.Should().NotThrow(); } } }