Esempio n. 1
0
        public void SubtractionOperatorShouldReturnTheDifferenceValue()
        {
            const double left           = 42;
            const double right          = 27;
            const double expectedResult = 15;

            // ReSharper disable once HeapView.ObjectAllocation.Evident
            var subtraction = new Subtraction();

            var subtractionResult = subtraction.Apply(left, right);

            Assert.AreEqual(expectedResult, subtractionResult, 0);
        }