public void Greater_ValuesAreLongs_SpecificValue_Val1GreaterThanSpecificValue_ExpectTrue() { //Arrange GreaterModelOfLongs model = new GreaterModelOfLongs { Val1 = 2 }; //Act bool isValid = model.PropertyIsValid("Val1"); //Assert isValid.ShouldBeTrue(); }
public void Greater_ValuesAreLongs_SpecificValue_Val1EqualSpecificValue_ExpectFalse() { //Arrange GreaterModelOfLongs model = new GreaterModelOfLongs { Val1 = 1 }; //Act bool isValid = model.PropertyIsValid("Val1"); //Assert isValid.ShouldBeFalse(); }
public void Greater_ValuesAreLongs_Val2GreaterThanVal1_ExpectTrue() { //Arrange GreaterModelOfLongs model = new GreaterModelOfLongs { Val1 = 1, Val2 = 2 }; //Act bool isValid = model.PropertyIsValid("Val2"); //Assert isValid.ShouldBeTrue(); }
public void Greater_ValuesAreLongs_Val2LessThanVal2_ExpectFalse() { //Arrange GreaterModelOfLongs model = new GreaterModelOfLongs { Val1 = 2, Val2 = 1 }; //Act bool isValid = model.PropertyIsValid("Val2"); //Assert isValid.ShouldBeFalse(); }
public void Greater_ValuesAreLongs_Val1IsNullAndVal2IsNotNull_ExpectTrue() { //Arrange GreaterModelOfLongs model = new GreaterModelOfLongs { Val1 = null, Val2 = 1 }; //Act bool isValid = model.PropertyIsValid("Val2"); //Assert isValid.ShouldBeTrue(); }
public void Greater_ValuesAreLongs_Val2LessThanVal2_ExpectFalse() { //Arrange GreaterModelOfLongs model = new GreaterModelOfLongs {Val1 = 2, Val2 = 1}; //Act bool isValid = model.PropertyIsValid("Val2"); //Assert isValid.ShouldBeFalse(); }
public void Greater_ValuesAreLongs_Val2GreaterThanVal1_ExpectTrue() { //Arrange GreaterModelOfLongs model = new GreaterModelOfLongs {Val1 = 1, Val2 = 2}; //Act bool isValid = model.PropertyIsValid("Val2"); //Assert isValid.ShouldBeTrue(); }
public void Greater_ValuesAreLongs_Val1IsNullAndVal2IsNotNull_ExpectTrue() { //Arrange GreaterModelOfLongs model = new GreaterModelOfLongs {Val1 = null, Val2 = 1}; //Act bool isValid = model.PropertyIsValid("Val2"); //Assert isValid.ShouldBeTrue(); }
public void Greater_ValuesAreLongs_SpecificValue_Val1NotGreaterThanSpecificValue_ExpectFalse() { //Arrange GreaterModelOfLongs model = new GreaterModelOfLongs {Val1 = 0}; //Act bool isValid = model.PropertyIsValid("Val1"); //Assert isValid.ShouldBeFalse(); }