Skip to content

Commit

Permalink
test: fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nalgeon committed Feb 16, 2021
1 parent 189b11b commit 5342a4f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Dadata.Test/SuggestClientAsyncTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public async Task FindAddressLanguageTest()
[Fact]
public async Task SuggestBankTypeTest()
{
var request = new SuggestBankRequest("я")
var request = new SuggestBankRequest("юмани")
{
type = new[] { BankType.NKO }
};
Expand Down Expand Up @@ -243,8 +243,8 @@ public async Task SuggestPartyTest()
var address = response.suggestions[0].data.address;
Assert.Equal("7707083893", party.data.inn);
Assert.Equal("г Москва, ул Вавилова, д 19", address.value);
Assert.Equal("117997, ГОРОД МОСКВА, УЛИЦА ВАВИЛОВА, 19", address.data.source);
Assert.Equal("117312", address.data.postal_code);
Assert.Contains("ГОРОД МОСКВА, УЛИЦА ВАВИЛОВА, 19", address.data.source);
Assert.Equal("Вавилова", address.data.street);
Console.WriteLine(string.Join("\n", response.suggestions));
}

Expand Down Expand Up @@ -279,7 +279,7 @@ public async Task SuggestPartyStatCodesTest()
[Fact]
public async Task SuggestPartyStatusTest()
{
var request = new SuggestPartyRequest("витас")
var request = new SuggestPartyRequest("4713008497")
{
status = new[] { PartyStatus.LIQUIDATED }
};
Expand Down Expand Up @@ -328,7 +328,7 @@ public async Task FindPartyTest()
var party = response.suggestions[0].data;
Assert.Equal("МОТОРИКА", party.name.@short);
Assert.Equal(PartyFounderShareType.PERCENT, party.founders[0].share.type);
Assert.Equal(100, party.founders[0].share.value);
Assert.True(party.founders[0].share.value > 50);
}

[Fact]
Expand Down

0 comments on commit 5342a4f

Please sign in to comment.