Skip to content

Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.

Fix test

support35805c208aa1
diff --git a/src/Tests/Grand.Business.Catalog.Tests/Services/Products/ProductReviewServiceTests.cs b/src/Tests/Grand.Business.Catalog.Tests/Services/Products/ProductReviewServiceTests.cs
index c20afca71..304132f33 100644
--- a/src/Tests/Grand.Business.Catalog.Tests/Services/Products/ProductReviewServiceTests.cs
+++ b/src/Tests/Grand.Business.Catalog.Tests/Services/Products/ProductReviewServiceTests.cs
@@ -79,8 +79,8 @@ namespace Grand.Business.Catalog.Services.Products.Tests
await _productReviewService.DeleteProductReview(productReview);
//Assert
- Assert.IsNull(_repository.Table.FirstOrDefault(x => x.ReviewText == "test1"));
- Assert.AreEqual(1, _repository.Table.Count());
+ Assert.IsNull(_repository.Table.FirstOrDefault(x => x.ReviewText == "test"));
+ Assert.AreEqual(0, _repository.Table.Count());
}
[TestMethod()]