Exemplo n.º 1
0
 public void GetInitialAvailabilityTest_exception()
 {
     Assert.ThrowsException <ArgumentException>(delegate()
     {
         RoomLayoutService.GetInitialAvailability("this room does not exist");
     });
 }
Exemplo n.º 2
0
        public void GetInitialAvailabilityTest_auditorium1()
        {
            bool[,] actual = RoomLayoutService.GetInitialAvailability("auditorium1");
            var a = expected.GetEnumerator();
            var b = actual.GetEnumerator();

            while (a.MoveNext() && b.MoveNext())
            {
                Assert.AreEqual(a.Current, b.Current);
            }
            ;
            Assert.IsFalse(a.MoveNext() || b.MoveNext());
        }