public void GivenLowerCaseName_WhenValidate_ThenResultIsFalse() { string name = "marc"; var validator = new Validator(); var result = validator.IsValidName(name); Assert.IsFalse(result); }
public void InitCapsNameResultIsTrue() { // Arrange string name = "Marc"; var validator = new Validator(); // Act bool result = validator.IsValidName(name); // Assert Assert.IsTrue(result); }
public void GivenNull_WhenValidate_ThenArgumentNullException() { var validator = new Validator(); validator.IsValidName(null); }