public void TestAddToNumberMethodWhenSignChangedToPositive()
        {
            // Arrange
            var sut = new Term
            {
                Number = 0.5f,
                Sign   = Signs.Minus
            };

            // Act
            var sum = sut.AddToNumber(1.5f);

            // Assert
            Assert.AreEqual(1f, sum, 0.001);
        }
        public void TestAddToNumberMethodWhenNeativeSignDoNotChanged()
        {
            // Arrange
            var sut = new Term
            {
                Number = 6.6f,
                Sign   = Signs.Minus
            };

            // Act
            var sum = sut.AddToNumber(-1.2f);

            // Assert
            Assert.AreEqual(-7.8, sum, 0.001);
        }
        public void TestAddToNumberMethodWhenSignChangedToNegative()
        {
            // Arrange
            var sut = new Term
            {
                Number = 1.1f,
                Sign   = Signs.Plus
            };

            // Act
            var sum = sut.AddToNumber(-2.9f);

            // Assert
            Assert.AreEqual(-1.8, sum, 0.001);
        }
        public void TestAddToNumberMethodWhenPositiveSignDoNotChanged()
        {
            // Arrange
            var sut = new Term
            {
                Number = 3.1f,
                Sign   = Signs.Plus
            };

            // Act
            var sum = sut.AddToNumber(2.2f);

            // Assert
            Assert.AreEqual(5.3, sum, 0.001);
        }