public void ShouldBeInvalidIfInvalidMacAddress(string value) { // Arrange var validator = new MacAddressValidator(); // Act validator.Validate(value); // Assert validator.IsInvalid.ShouldBe(true); }
public void ShouldBeDirtyOnceValidated() { // Arrange string value = "Test"; var validator = new MacAddressValidator(); // Act validator.Validate(value); // Assert validator.IsDirty.ShouldBe(true); }