public void GreaterOrEqual_ValuesAreLongs_SpecificValue_Val1EqualSpecificValue_ExpectTrue() { //Arrange GreaterOrEqualModelOfLongs model = new GreaterOrEqualModelOfLongs { Val1 = 1 }; //Act bool isValid = model.PropertyIsValid("Val1"); //Assert isValid.ShouldBeTrue(); }
public void GreaterOrEqual_ValuesAreLongs_Val2GreaterOrEqualThanVal1_ExpectTrue() { //Arrange GreaterOrEqualModelOfLongs model = new GreaterOrEqualModelOfLongs { Val1 = 1, Val2 = 2 }; //Act bool isValid = model.PropertyIsValid("Val2"); //Assert isValid.ShouldBeTrue(); }
public void GreaterOrEqual_ValuesAreLongs_Val2LessThanVal2_ExpectFalse() { //Arrange GreaterOrEqualModelOfLongs model = new GreaterOrEqualModelOfLongs { Val1 = 2, Val2 = 1 }; //Act bool isValid = model.PropertyIsValid("Val2"); //Assert isValid.ShouldBeFalse(); }
public void GreaterOrEqual_ValuesAreLongs_Val1IsNullAndVal2IsNotNull_ExpectTrue() { //Arrange GreaterOrEqualModelOfLongs model = new GreaterOrEqualModelOfLongs { Val1 = null, Val2 = 1 }; //Act bool isValid = model.PropertyIsValid("Val2"); //Assert isValid.ShouldBeTrue(); }