Exemple #1
0
        public void TowardsZeroCheckerreturnsTrueWhenCurrentIsEqualToTarget()
        {
            //Arrange
            var towardsZeroChecker = new TowardsZeroChecker();
            //Act
            var result = towardsZeroChecker.CurrentValueIsEqualToTargetValue(2, 2);

            //Assert
            Assert.IsTrue(result);
        }
Exemple #2
0
        public void TowardsZeroCheckerReturnsfalseIfcurrentIsMoreThanTargetMinusWarning()
        {
            //Arrange
            var towardsZeroChecker = new TowardsZeroChecker();
            //Act
            var result = towardsZeroChecker.CurrentValueIsBetterThanTargetValueAndWarning(5, 7, 3);

            //Assert
            Assert.IsFalse(result);
        }
Exemple #3
0
        public void TowardsZeroCheckerreturnsTrueWhenCurrentIsLowerThanTarget()
        {
            //Arrange
            var towardsZeroChecker = new TowardsZeroChecker();
            //Act
            var result = towardsZeroChecker.CurrentValueIsBetterThanTargetValue(2, 4);

            //Assert
            Assert.IsTrue(result);
        }