Skip to content

Commit

Permalink
Clarify test exclusion behaviour
Browse files Browse the repository at this point in the history
Co-authored-by: Omid Marfavi <[email protected]>
  • Loading branch information
A-Guldborg and marfavi authored Dec 12, 2023
1 parent 74db1b0 commit 871a862
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ await productService.UpdateProduct(new UpdateProductRequest()
e => Assert.Equal(UserGroup.Customer, e.UserGroup),
e => Assert.Equal(UserGroup.Board, e.UserGroup));

// Explicitly check for exclusion of Barista and Manager, even though Assert.Collection implicitly covers it.
Assert.DoesNotContain(UserGroup.Barista, result.ProductUserGroup.Select(e => e.UserGroup));
Assert.DoesNotContain(UserGroup.Manager, result.ProductUserGroup.Select(e => e.UserGroup));
}
Expand Down

0 comments on commit 871a862

Please sign in to comment.