public void Can_Not_Pass_SoftwareValidator_Tests() { //Arrange var model = new Software() { SoftwareName = "1234", SoftwareLastVersion = "", }; //Action var result = new SoftwareValidator().Validate(model); //Assert OutputHelpers.WriteLineError(result, outputHelper); Assert.False(result.IsValid); }
public void Can_Pass_SoftwareValidator_Tests() { //Arrange var model = new Software() { SoftwareName = "TwitterBot", SoftwareLastVersion = "v1.20", }; //Action var result = new SoftwareValidator().Validate(model); //Assert OutputHelpers.WriteLineError(result, outputHelper); Assert.True(result.IsValid); }