Esempio n. 1
0
        public void Greater_ValuesAreLongs_SpecificValue_Val1GreaterThanSpecificValue_ExpectTrue()
        {
            //Arrange
            GreaterModelOfLongs model = new GreaterModelOfLongs {
                Val1 = 2
            };
            //Act
            bool isValid = model.PropertyIsValid("Val1");

            //Assert
            isValid.ShouldBeTrue();
        }
Esempio n. 2
0
        public void Greater_ValuesAreLongs_SpecificValue_Val1EqualSpecificValue_ExpectFalse()
        {
            //Arrange
            GreaterModelOfLongs model = new GreaterModelOfLongs {
                Val1 = 1
            };
            //Act
            bool isValid = model.PropertyIsValid("Val1");

            //Assert
            isValid.ShouldBeFalse();
        }
Esempio n. 3
0
        public void Greater_ValuesAreLongs_Val2GreaterThanVal1_ExpectTrue()
        {
            //Arrange
            GreaterModelOfLongs model = new GreaterModelOfLongs {
                Val1 = 1, Val2 = 2
            };
            //Act
            bool isValid = model.PropertyIsValid("Val2");

            //Assert
            isValid.ShouldBeTrue();
        }
Esempio n. 4
0
        public void Greater_ValuesAreLongs_Val2LessThanVal2_ExpectFalse()
        {
            //Arrange
            GreaterModelOfLongs model = new GreaterModelOfLongs {
                Val1 = 2, Val2 = 1
            };
            //Act
            bool isValid = model.PropertyIsValid("Val2");

            //Assert
            isValid.ShouldBeFalse();
        }
Esempio n. 5
0
        public void Greater_ValuesAreLongs_Val1IsNullAndVal2IsNotNull_ExpectTrue()
        {
            //Arrange
            GreaterModelOfLongs model = new GreaterModelOfLongs {
                Val1 = null, Val2 = 1
            };
            //Act
            bool isValid = model.PropertyIsValid("Val2");

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