예제 #1
0
        public void LocationModel_CreateListOfDummyLocations()
        {
            var unvisited = lm.CreateDummyLocations(100);

            for (int i = 0; i < unvisited.Count; i++)
            {
                DummyLocation temp = unvisited[i];
                Assert.AreEqual(i + 1, temp.GetLocationID(), "List ID should match locationID");
            }

            lm        = new LocationModel();
            unvisited = lm.CreateDummyLocations(101);
            Assert.AreEqual(104, unvisited.Count);
        }