예제 #1
0
        public void calculate_should_return_real_number_with_multi_value()
        {
            // Given
            SUT = new Multiplication(new RealNumber(2.0), new RealNumber(6.0));

            // When
            var result = SUT.Calculate();

            // Then
            Assert.IsInstanceOf<RealNumber>(result);
        }
예제 #2
0
        public void calculate_should_return_number_that_is_the_multi()
        {
            // Given
            SUT = new Multiplication(new RealNumber(2.0), new RealNumber(6.0));

            // When
            var result = SUT.Calculate() as RealNumber;

            // Then
            Assert.AreEqual(12.0, result.Value);
        }