public void Given_Max_FloatNumber_At_Third_Position_Return_Max(float num1, float num2, float num3)
        {
            float result   = FindMaxNumber.MaximumFloatNumber(num1, num2, num3);
            float expected = num3;

            Assert.AreEqual(expected, result);
        }
        public void Given_Max_String_At_Second_Position_Return_Max(string num1, string num2, string num3)
        {
            string result   = FindMaxNumber.MaximumString(num1, num2, num3);
            string expected = num2;

            Assert.AreEqual(expected, result);
        }
        public void Given_Max_IntegerNumber_At_Third_Position_Return_Max(int num1, int num2, int num3)
        {
            int result   = FindMaxNumber.MaximumIntegerNumber(num1, num2, num3);
            int expected = num3;

            Assert.AreEqual(expected, result);
        }
예제 #4
0
        public void FindLargest_input2and3_expectedresult3()
        {
            int           num1           = 2;
            int           num2           = 3;
            int           expectedresult = num2;
            FindMaxNumber a      = new FindMaxNumber();
            int           result = a.FindLargest(num1, num2);

            Assert.AreEqual(expectedresult, result);
        }