Example #1
0
        public void Division_returns_divider2_of_given_values()
        {
            // arrage
            var math = new Matematyka();

            // act
            var result = math.Division(10, 2);

            // assert
            Assert.Equal(5, result);
        }
Example #2
0
        public void Multiply_returns_multiplycasion_of_given_values()
        {
            // arrage
            var math = new Matematyka();

            // act
            var result = math.Multiply(5, 5);

            // assert
            Assert.Equal(25, result);
        }
Example #3
0
        public void Add2_returns_sum_of_given_values()
        {
            // arrage
            var math = new Matematyka();

            // act
            var result = math.Add(10, 100);

            // assert
            Assert.Equal(110, result);
        }
Example #4
0
        public void Substract_returns_quotient_of_given_values()
        {
            // arrage
            var math = new Matematyka();

            // act
            var result = math.Substract(5, 20);

            // assert
            Assert.Equal(-15, result);
        }
Example #5
0
        public void TheoryExample(double x, double y, double expected)
        {
            // arrage
            var math = new Matematyka();

            // act
            var result = math.Add(x, y);

            // assert
            Assert.Equal(expected, result);
        }