Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sonvister committed Jan 26, 2018
1 parent 6ad5f20 commit 1617a31
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions test/Binance.Tests/Account/AccountCommissionsTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ public class AccountCommissionsTest
public void Throws()
{
Assert.Throws<ArgumentException>("maker", () => new AccountCommissions(-10, 10, 10, 10));
Assert.Throws<ArgumentException>("maker", () => new AccountCommissions(110, 10, 10, 10));
Assert.Throws<ArgumentException>("maker", () => new AccountCommissions(10010, 10, 10, 10));

Assert.Throws<ArgumentException>("taker", () => new AccountCommissions(10, -10, 10, 10));
Assert.Throws<ArgumentException>("taker", () => new AccountCommissions(10, 110, 10, 10));
Assert.Throws<ArgumentException>("taker", () => new AccountCommissions(10, 10010, 10, 10));

Assert.Throws<ArgumentException>("buyer", () => new AccountCommissions(10, 10, -10, 10));
Assert.Throws<ArgumentException>("buyer", () => new AccountCommissions(10, 10, 110, 10));
Assert.Throws<ArgumentException>("buyer", () => new AccountCommissions(10, 10, 10010, 10));

Assert.Throws<ArgumentException>("seller", () => new AccountCommissions(10, 10, 10, -10));
Assert.Throws<ArgumentException>("seller", () => new AccountCommissions(10, 10, 10, 110));
Assert.Throws<ArgumentException>("seller", () => new AccountCommissions(10, 10, 10, 10010));
}

[Fact]
Expand Down
2 changes: 1 addition & 1 deletion test/Binance.Tests/Account/AccountTradeTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public void Throws()
Assert.Throws<ArgumentException>("quantity", () => new AccountTrade(symbol, id, orderId, price, 0, commission, commissionAsset, time, isBuyer, isMaker, isBestPriceMatch));

Assert.Throws<ArgumentException>("commission", () => new AccountTrade(symbol, id, orderId, price, quantity, -1, commissionAsset, time, isBuyer, isMaker, isBestPriceMatch));
Assert.Throws<ArgumentException>("commission", () => new AccountTrade(symbol, id, orderId, price, quantity, 101, commissionAsset, time, isBuyer, isMaker, isBestPriceMatch));
Assert.Throws<ArgumentException>("commission", () => new AccountTrade(symbol, id, orderId, price, quantity, 10001, commissionAsset, time, isBuyer, isMaker, isBestPriceMatch));
}

[Fact]
Expand Down

0 comments on commit 1617a31

Please sign in to comment.