Skip to content

Commit

Permalink
Updated the expected error message.
Browse files Browse the repository at this point in the history
  • Loading branch information
yallie committed Sep 13, 2023
1 parent a9a839b commit f0f2231
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions PochtaSdk.Tests/OtpravkaClientTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,7 @@ public void CreateSeparateReturnOrderThenDeleteIt()
Street = "ул Венёвская",
},
SenderName = "Алексеев Алексей",
RecipientName = "Милешин Олег",
RecipientName = "Немов Константин",
PostOfficeCode = "115162",
DeclaredValue = 0,
MailType = MailType.Undefined,
Expand Down Expand Up @@ -1584,7 +1584,8 @@ public void CalculateShippingTariffFails()
// расчет через тарификатор сообщает, в чем конкретно ошибка
Assert.That(() => Client.CalculateShippingTariff(req),
Throws.TypeOf<OtpravkaException>().With
.Message.Contains("нельзя доставить в почтомат"));
.Message.Contains("нельзя доставить в почтомат").Or
.Message.Contains("в почтомат не осуществляется"));
}

[Test]
Expand Down

0 comments on commit f0f2231

Please sign in to comment.