예제 #1
0
        public void SearchForDay_WhatDayIsItInFebuary_True()
        {
            //arrange
            DayOfChoice testDate = new DayOfChoice(20, 2, 1900);
            //act
            string day = testDate.SearchForDay();

            //assert
            Assert.Equal(day, "Tuesday");
        }
예제 #2
0
        public void SearchForDay_WhatDayIsItBetweenMarchAndAugust2_True()
        {
            //arrange
            DayOfChoice testDate = new DayOfChoice(31, 8, 1900);
            //act
            string day = testDate.SearchForDay();

            //assert
            Assert.Equal(day, "Friday");
        }
예제 #3
0
        public void SearchForDay_WhatDayIsItInMonth_True()
        {
            //arrange
            DayOfChoice testDate = new DayOfChoice(20, 1, 1900);
            //act
            string day = testDate.SearchForDay();

            //assert
            Assert.Equal(day, "Saturday");
        }
예제 #4
0
        public void SearchForDay_WhatDayIsItForWholeYear_True()
        {
            //arrange
            DayOfChoice testDate = new DayOfChoice(13, 11, 1900);
            //act
            string day = testDate.SearchForDay();

            Console.WriteLine(day);
            //assert
            Assert.Equal(day, "Tuesday");
        }