diff --git a/plugins/Coupons/test/EasyAbp.EShop.Orders.Plugins.Coupons.Tests/Orders/OrdersAppServiceTests.cs b/plugins/Coupons/test/EasyAbp.EShop.Orders.Plugins.Coupons.Tests/Orders/OrdersAppServiceTests.cs index 3e268e14..587cac8c 100644 --- a/plugins/Coupons/test/EasyAbp.EShop.Orders.Plugins.Coupons.Tests/Orders/OrdersAppServiceTests.cs +++ b/plugins/Coupons/test/EasyAbp.EShop.Orders.Plugins.Coupons.Tests/Orders/OrdersAppServiceTests.cs @@ -96,7 +96,6 @@ await WithUnitOfWorkAsync(async () => await Should.ThrowAsync(() => orderGenerator.GenerateAsync(Guid.NewGuid(), createOrderInfoModel, dic, new Dictionary())); - return; } else { @@ -107,6 +106,11 @@ await Should.ThrowAsync(() => //assert + if (throws) + { + return; + } + var orderLine = order.OrderLines[0]; var orderLine2ExpectedPrice = 1 * prodoctSku.Price - discountAmount;