Ejemplo n.º 1
0
        public void NotEqual_ValuesAreLongs_SpecificValue_Val1DoesNotNotEqualpecificValue_ExpectTrue()
        {
            //Arrange
            NotEqualModelOfLongs model = new NotEqualModelOfLongs {
                Val1 = 100
            };
            //Act
            bool isValid = model.PropertyIsValid("Val1");

            //Assert
            isValid.ShouldBeTrue();
        }
Ejemplo n.º 2
0
        public void NotEqual_ValuesAreLongs_SpecificValue_Val1NotEqualSpecificValue_ExpectFalse()
        {
            //Arrange
            NotEqualModelOfLongs model = new NotEqualModelOfLongs {
                Val1 = 99
            };
            //Act
            bool isValid = model.PropertyIsValid("Val1");

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

            //Assert
            isValid.ShouldBeTrue();
        }
Ejemplo n.º 4
0
        public void NotEqual_ValuesAreLongs_Val1IsNullAndVal2IsNotNull_ExpectTrue()
        {
            //Arrange
            NotEqualModelOfLongs model = new NotEqualModelOfLongs {
                Val1 = null, Val2 = 1
            };
            //Act
            bool isValid = model.PropertyIsValid("Val2");

            //Assert
            isValid.ShouldBeTrue();
        }
Ejemplo n.º 5
0
 public void NotEqual_ValuesAreLongs_Val1NotEqualVal2_ExpectFalse()
 {
     //Arrange
     NotEqualModelOfLongs model = new NotEqualModelOfLongs {Val1 = 1, Val2 = 1};
     //Act
     bool isValid = model.PropertyIsValid("Val2");
     //Assert
     isValid.ShouldBeFalse();
 }
Ejemplo n.º 6
0
 public void NotEqual_ValuesAreLongs_Val1IsNullAndVal2IsNotNull_ExpectTrue()
 {
     //Arrange
     NotEqualModelOfLongs model = new NotEqualModelOfLongs {Val1 = null, Val2 = 1};
     //Act
     bool isValid = model.PropertyIsValid("Val2");
     //Assert
     isValid.ShouldBeTrue();
 }
Ejemplo n.º 7
0
 public void NotEqual_ValuesAreLongs_SpecificValue_Val1NotEqualSpecificValue_ExpectFalse()
 {
     //Arrange
     NotEqualModelOfLongs model = new NotEqualModelOfLongs {Val1 = 99};
     //Act
     bool isValid = model.PropertyIsValid("Val1");
     //Assert
     isValid.ShouldBeFalse();
 }
Ejemplo n.º 8
0
 public void NotEqual_ValuesAreLongs_SpecificValue_Val1DoesNotNotEqualpecificValue_ExpectTrue()
 {
     //Arrange
     NotEqualModelOfLongs model = new NotEqualModelOfLongs {Val1 = 100};
     //Act
     bool isValid = model.PropertyIsValid("Val1");
     //Assert
     isValid.ShouldBeTrue();
 }