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

            double maxNumber = 55.5;

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

            string maxString = "Peach";

            Assert.AreEqual(maxString, result);
        }
Exemplo n.º 3
0
        public void GivenMaxNumber_ThirdPosition()
        {
            int result = GenericMaximum <int> .testMaximum(10, 20, 40);

            int maxNumber = 40;

            Assert.AreEqual(maxNumber, result);
        }