コード例 #1
0
        public void AdditionOperatorShouldReturnTheSumValue()
        {
            const double left           = 42;
            const double right          = 27;
            const double expectedResult = 69;

            // ReSharper disable once HeapView.ObjectAllocation.Evident
            var addition = new Addition();

            var additionResult = addition.Apply(left, right);

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