Exemple #1
0
        public void Less_ValuesAreLongs_SpecificValue_Val1LessThanSpecificValue_ExpectTrue()
        {
            //Arrange
            LessModelOfLongs model = new LessModelOfLongs {
                Val1 = 0
            };
            //Act
            bool isValid = model.PropertyIsValid("Val1");

            //Assert
            isValid.ShouldBeTrue();
        }
Exemple #2
0
        public void Less_ValuesAreLongs_Val1LessThanVal2_ExpectFalse()
        {
            //Arrange
            LessModelOfLongs model = new LessModelOfLongs {
                Val1 = 1, Val2 = 2
            };
            //Act
            bool isValid = model.PropertyIsValid("Val2");

            //Assert
            isValid.ShouldBeFalse();
        }
Exemple #3
0
        public void Less_ValuesAreLongs_Val2LessThanVal1_ExpectTrue()
        {
            //Arrange
            LessModelOfLongs model = new LessModelOfLongs {
                Val1 = 2, Val2 = 1
            };
            //Act
            bool isValid = model.PropertyIsValid("Val2");

            //Assert
            isValid.ShouldBeTrue();
        }
Exemple #4
0
        public void Less_ValuesAreLongs_Val1IsNotNullAndVal2IsNull_ExpectTrue()
        {
            //Arrange
            LessModelOfLongs model = new LessModelOfLongs {
                Val1 = 1, Val2 = null
            };
            //Act
            bool isValid = model.PropertyIsValid("Val2");

            //Assert
            isValid.ShouldBeTrue();
        }
Exemple #5
0
        public void Less_ValuesAreLongs_SpecificValue_Val1EqualSpecificValue_ExpectFalse()
        {
            //Arrange
            LessModelOfLongs model = new LessModelOfLongs {
                Val1 = 1
            };
            //Act
            bool isValid = model.PropertyIsValid("Val1");

            //Assert
            isValid.ShouldBeFalse();
        }
Exemple #6
0
 public void Less_ValuesAreLongs_Val2LessThanVal1_ExpectTrue()
 {
     //Arrange
     LessModelOfLongs model = new LessModelOfLongs {Val1 = 2, Val2 = 1};
     //Act
     bool isValid = model.PropertyIsValid("Val2");
     //Assert
     isValid.ShouldBeTrue();
 }
Exemple #7
0
 public void Less_ValuesAreLongs_Val2EqualsVal1_ExpectFalse()
 {
     //Arrange
     LessModelOfLongs model = new LessModelOfLongs {Val1 = 1, Val2 = 1};
     //Act
     bool isValid = model.PropertyIsValid("Val2");
     //Assert
     isValid.ShouldBeFalse();
 }
Exemple #8
0
 public void Less_ValuesAreLongs_Val1IsNullAndVal2IsNotNull_ExpectFalse()
 {
     //Arrange
     LessModelOfLongs model = new LessModelOfLongs {Val1 = null, Val2 = 1};
     //Act
     bool isValid = model.PropertyIsValid("Val2");
     //Assert
     isValid.ShouldBeFalse();
 }
Exemple #9
0
 public void Less_ValuesAreLongs_Val1AndVal2_BothNull_ExpectTrue()
 {
     //Arrange
     LessModelOfLongs model = new LessModelOfLongs {Val1 = null, Val2 = null};
     //Act
     bool isValid = model.PropertyIsValid("Val2");
     //Assert
     isValid.ShouldBeTrue();
 }
Exemple #10
0
 public void Less_ValuesAreLongs_SpecificValue_Val1NotLessThanSpecificValue_ExpectFalse()
 {
     //Arrange
     LessModelOfLongs model = new LessModelOfLongs { Val1 = 2 };
     //Act
     bool isValid = model.PropertyIsValid("Val1");
     //Assert
     isValid.ShouldBeFalse();
 }