예제 #1
0
        public void CheckDropDownListCreationTest()
        {
            // List should be sorted and values distinct
            // Arrange
            Bets          b        = new Bets();
            List <String> expected = new List <string>()
            {
                "Aintree",
                "Ascot",
                "Ayr",
                "Bangor",
                "Chester",
                "Cork",
                "Doncaster",
                "Dundalk",
                "Fairyhouse",
                "Goodwood",
                "Haydock",
                "Kelso",
                "Kilbeggan",
                "Perth",
                "Punchestown",
                "Sandown",
                "Towcester",
                "York"
            };
            // Act
            List <string> actual = b.ExtractLocation();

            // Assert
            CollectionAssert.AreEqual(expected, actual);
        }