From 185d48605313b7b8d8a27f4bb1401e6483e58f03 Mon Sep 17 00:00:00 2001 From: Charis Date: Tue, 8 Oct 2019 10:51:51 +0800 Subject: [PATCH] update assertion sentence --- neo.UnitTests/Network/RPC/UT_RpcClient.cs | 2 +- neo.UnitTests/Network/RPC/UT_RpcServer.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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(); } } }