Пример #1
0
        public void conditionMeet_should_return_true_if_both_numbers_have_same_value()
        {
            // Given
            SUT = new Equals(new RealNumber(1), new RealNumber(1));

            // Then
            Assert.IsTrue(SUT.ConditionMeet);
        }
Пример #2
0
        public void contructor_should_set_right_number()
        {
            // Given
            var nbr = new RealNumber(1);

            // When
            SUT = new Equals(new RealNumber(2), nbr);

            // Then
            Assert.AreSame(nbr, SUT.Right);
        }
Пример #3
0
        public void contructor_should_set_left_number()
        {
            // Given
            var nbr = new RealNumber(1);

            // When
            SUT = new Equals(nbr, new RealNumber(2));

            // Then
            Assert.AreSame(nbr, SUT.Left);
        }
Пример #4
0
 public void Setup()
 {
     SUT = new Equals(new RealNumber(1), new RealNumber(2));
 }
Пример #5
0
 public void Teardown()
 {
     SUT = null;
 }