Beispiel #1
0
        public void GivenNumber_WhenTested_ReturnMaxximumFloatNumber()
        {
            GetMaximumUsingGeneric <float> maximum = new GetMaximumUsingGeneric <float>();
            float maximumNumber = maximum.FindMaximumNumber(1f, 2f, 3f, 50f, 20f, 60f);

            Assert.AreEqual(60f, maximumNumber);
        }
Beispiel #2
0
        public void GivenNumber_WhenTested_ReturnMaxximumString()
        {
            GetMaximumUsingGeneric <string> maximum = new GetMaximumUsingGeneric <string>();
            string maximumNumber = maximum.FindMaximumNumber("A", "Z", "M", "N", "U");

            Assert.AreEqual("Z", maximumNumber);
        }
Beispiel #3
0
        public void GivenNumber_WhenTested_ReturnMaxximumIntegerNumber()
        {
            GetMaximumUsingGeneric <int> maximum = new GetMaximumUsingGeneric <int>();
            int maximumNumber = maximum.FindMaximumNumber(1, 2, 3, 50, 60, 20);

            Assert.AreEqual(60, maximumNumber);
        }