Skip to content

Commit 4b8dea5

Browse files
committed
test update
1 parent 9553519 commit 4b8dea5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

‎Content.IntegrationTests/Tests/StoreTests.cs‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ await server.WaitAssertion(() =>
112112

113113
var prototypeCost = prototype.Cost[UplinkSystem.TelecrystalCurrencyPrototype];
114114
var discountDownTo = prototype.DiscountDownTo[UplinkSystem.TelecrystalCurrencyPrototype];
115-
Assert.That(plainDiscountedCost.Value, Is.GreaterThanOrEqualTo(discountDownTo.Value), "Expected discounted cost to be greater then DiscountDownTo value.");
116-
Assert.That(plainDiscountedCost.Value, Is.LessThan(prototypeCost.Value), "Expected discounted cost to be lower then prototype cost.");
115+
Assert.That(plainDiscountedCost.Value, Is.GreaterThanOrEqualTo(discountDownTo.Value), $"Expected discounted cost of {discountedListingItem.Name} to be greater then DiscountDownTo value."); // Goobstation
116+
Assert.That(plainDiscountedCost.Value, Is.LessThan(prototypeCost.Value), $"Expected discounted cost of {discountedListingItem.Name} to be lower then prototype cost."); // Goobstation
117117

118118

119119
var buyMsg = new StoreBuyListingMessage(discountedListingItem.ID){Actor = human};
@@ -124,7 +124,7 @@ await server.WaitAssertion(() =>
124124
Assert.That(
125125
discountedListingItem.IsCostModified,
126126
Is.False,
127-
$"Expected item cost to not be modified after Buying discounted item."
127+
$"Expected item cost of {discountedListingItem.Name} to not be modified after Buying discounted item." // Goobstation
128128
);
129129
var costAfterBuy = discountedListingItem.Cost[UplinkSystem.TelecrystalCurrencyPrototype];
130130
Assert.That(costAfterBuy.Value, Is.EqualTo(prototypeCost.Value), "Expected cost after discount refund to be equal to prototype cost.");
@@ -140,13 +140,13 @@ await server.WaitAssertion(() =>
140140
Assert.That(
141141
discountComponent.Discounts.First(x => x.ListingId == discountedListingItem.ID).Count,
142142
Is.EqualTo(0),
143-
"Discounted count should still be zero even after refund."
143+
$"Discounted count should still be zero even after refund: {discountedListingItem.Name}." // Goobstation
144144
);
145145

146146
Assert.That(
147147
discountedListingItem.IsCostModified,
148148
Is.False,
149-
$"Expected item cost to not be modified after Buying discounted item (even after refund was done)."
149+
$"Expected item cost of {discountedListingItem.Name} to not be modified after Buying discounted item (even after refund was done)." // Goobstation
150150
);
151151
var costAfterRefund = discountedListingItem.Cost[UplinkSystem.TelecrystalCurrencyPrototype];
152152
Assert.That(costAfterRefund.Value, Is.EqualTo(prototypeCost.Value), "Expected cost after discount refund to be equal to prototype cost.");

0 commit comments

Comments
 (0)