Beispiel #1
0
        public void Max_FirstNumberEqualsSecond_ReturnSameValue()
        {
            var math = new Math();

            var result = math.Max(2, 2);

            Assert.Equal(2, result);
        }
Beispiel #2
0
        public void Max_FirstNumberGreaterThanSecond_ReturnFirst()
        {
            var math = new Math();

            var result = math.Max(2, 1);

            Assert.Equal(2, result);
        }
Beispiel #3
0
        public void Max_FirstNumberLessThanSecond_ReturnSecond()
        {
            var math = new Math();

            var result = math.Max(1, 2);

            Assert.Equal(2, result);
        }
Beispiel #4
0
        public void Add_CalledWithTwoNumber_ReturnsSumOfTwoNumbers()
        {
            // Arrange
            var math = new Math();

            // Act
            var result = math.Add(1, 2);

            // Assert
            Assert.Equal(3, result);
        }