Ejemplo n.º 1
0
        /// <summary>
        /// Given the maximum float number third position.
        /// </summary>
        public void GivenMaxFloatNumber_ThirdPosition()
        {
            double result    = MaximumNumberCheck.findMaximum(20.2, 33.3, 55.5);
            double maxNumber = 55.5;

            Assert.AreEqual(maxNumber, result);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Given the maximum string second position.
        /// </summary>
        public void GivenMaxString_SecondPosition()
        {
            string result    = MaximumNumberCheck.findMaximum("Apple", "Peach", "Banana");
            string maxString = "Peach";

            Assert.AreEqual(maxString, result);
        }
Ejemplo n.º 3
0
        public void GivenMaxNumber_ThirdPosition()
        {
            int result    = MaximumNumberCheck.findMaximum(10, 20, 40);
            int maxNumber = 40;

            Assert.AreEqual(maxNumber, result);
        }
Ejemplo n.º 4
0
        public void GivenMaxNumber_FirstPosition()
        {
            int result    = MaximumNumberCheck.findMaximum(40, 20, 30);
            int maxNumber = 40;

            Assert.AreEqual(maxNumber, result);
        }
        public void GivenMaxString_WhenAtSecondPoistion_ThenReturnSameStringUsingGenricMethode()
        {
            string expected  = "Peach";
            string maxString = MaximumNumberCheck.findMaximum <string>("Apple", "Peach", " Banana");

            Assert.AreEqual(expected, maxString);
        }
        public void GivenMaxFloatNumber_WhenAtThirdPosition_ThenReturnSameNumberUsingGenricMethode()
        {
            double expected  = 70.0;
            double maxNumber = MaximumNumberCheck.findMaximum <double>(60.0, 70.0, 50.0);

            Assert.AreEqual(expected, maxNumber);
        }
        public void GivenMaxIntegerNumber_WhenAtThirdPosition_ThenReturnSameNumberUsingGenricMethode()
        {
            int expected  = 800;
            int maxNumber = MaximumNumberCheck.findMaximum <int>(700, 600, 800);

            Assert.AreEqual(expected, maxNumber);
        }