1
0
mirror of https://github.com/JKorf/CryptoExchange.Net.git synced 2026-08-18 03:43:00 +00:00

Unit tests, fixed error response parsing

This commit is contained in:
JKorf
2018-12-04 10:15:43 +01:00
parent 8a4e8403d2
commit 0f594bf8f4
4 changed files with 64 additions and 5 deletions
@@ -78,7 +78,8 @@ namespace CryptoExchange.Net.UnitTests
Assert.IsFalse(result.Success);
Assert.IsTrue(result.Error != null);
Assert.IsTrue(result.Error is ServerError);
Assert.IsTrue(result.Error.Message.Contains("{\"errorMessage\": \"Invalid request\", \"errorCode\": 123}"));
Assert.IsTrue(result.Error.Message.Contains("Invalid request"));
Assert.IsTrue(result.Error.Message.Contains("123"));
}
[TestCase]