Skip to content

Commit 7bd8822

Browse files
committed
test: updating tests to match new return
1 parent 7e9cd56 commit 7bd8822

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ The following cryptocurrency services are supported:
7575

7676
Exchange constructors are private, to get access to an exchange in code use:
7777

78-
`ExchangeAPI.GetExchangeAPIAsync<>()`.
78+
`ExchangeAPI.GetExchangeAPIAsync<T>()`.
7979

8080
### Installing the CLI
8181

tests/ExchangeSharpTests/ExchangeBinanceAPITests.cs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -34,22 +34,22 @@ public void DeserializeDiff()
3434
string toParse =
3535
@"{
3636
""e"": ""depthUpdate"",
37-
""E"": 123456789,
38-
""s"": ""BNBBTC"",
39-
""U"": 157,
40-
""u"": 160,
41-
""b"": [
37+
""E"": 123456789,
38+
""s"": ""BNBBTC"",
39+
""U"": 157,
40+
""u"": 160,
41+
""b"": [
4242
[
43-
""0.0024"",
43+
""0.0024"",
4444
""10"",
45-
[]
45+
[]
4646
]
4747
],
48-
""a"": [
48+
""a"": [
4949
[
50-
""0.0026"",
51-
""100"",
52-
[]
50+
""0.0026"",
51+
""100"",
52+
[]
5353
]
5454
]
5555
}";
@@ -116,7 +116,7 @@ public async Task CurrenciesParsedCorrectly()
116116
requestMaker
117117
.MakeRequestAsync(
118118
"/capital/config/getall",
119-
((ExchangeBinanceAPI)binance).BaseUrlSApi
119+
binance.BaseUrlSApi
120120
)
121121
.Returns(
122122
new IAPIRequestMaker.RequestResult<string>()

tests/ExchangeSharpTests/ExchangeMEXCAPITests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ namespace ExchangeSharpTests;
1111
public class MEXCAPITests
1212
{
1313
private const string MarketSymbol = "ETHBTC";
14-
private static IExchangeAPI _api;
14+
private static ExchangeMEXCAPI _api;
1515

1616
[AssemblyInitialize]
1717
public static async Task AssemblyInitialize(TestContext testContext)

0 commit comments

Comments
 (0)