public void calling_validate_runs_the_validator() { var user = new User(); var validator = Substitute.For<IValidator>(); var sut = new ValidationRunner(); sut.RunValidation(validator, user); validator.Received().Validate(user); }
public void full_name_property_is_sensible() { var u = new User { FirstName = "Jimmy", LastName = "Nail" }; Assert.AreEqual("Jimmy Nail", u.FullName); }