Exemplo n.º 1
0
        public void MyPropertyLessThanZero_NewPropertyOver100_ShouldReturnFalse()
        {
            // ARRANGE
            var classUnderTest = new Class1()
            {
                MyProperty = -5, NewProperty = 110
            };

            // ACT
            var actual = classUnderTest.CheckBothProperties();

            // ASSERT
            Assert.IsFalse(actual);
        }
Exemplo n.º 2
0
        public void MyPropertyGreaterThanZero_NewPropertyUnder100_ShouldReturnTrue()
        {
            // ARRANGE
            var classUnderTest = new Class1()
            {
                MyProperty = 5, NewProperty = 11
            };

            // ACT
            var actual = classUnderTest.CheckBothProperties();

            // ASSERT
            Assert.IsTrue(actual);
        }
Exemplo n.º 3
0
        public void MyPropertyLessThanZero_ShouldReturnTrue()
        {
            // ARRANGE
            var classUnderTest = new Class1()
            {
                MyProperty = -5
            };

            // ACT
            var actual = classUnderTest.CheckMyProperty();

            // ASSERT
            Assert.IsFalse(actual);
        }