public void Constructor_SetErrorMessage() { // Arrange / Act var collection = new[] { "1", "2", "3" }; var sut = new ContainsValidationRule <string>(ERROR_MESSAGE, collection); // Assert sut.ErrorMessage.Should().Be(ERROR_MESSAGE); }
public void Validate_IncludedValue_Inverse(string value) { // Arrange var collection = new[] { "1", "2", "3" }; var sut = new ContainsValidationRule <string>(ERROR_MESSAGE, collection, true); // Act var result = sut.Validate(value); // Assert result.Should().BeFalse(); }