Пример #1
0
        public void TestAddBedSideMonitor()
        {
            IBay testBay = new Bay();
            testBay.AddBedSideMonitor();

            Assert.IsNotNull(testBay.BedsideMonitors[0]);
        }
Пример #2
0
        public void TestRemoveBedsideMonitor()
        {
            IBay testBay = new Bay(2);
            testBay.RemoveBedsideMonitor(0);

            Assert.AreEqual(1, testBay.BedsideMonitors.Count);
        }
Пример #3
0
        public void GetListOfBedsideMonitorsTest()
        {
            IBay testBay = new Bay();
            testBay.AddBedSideMonitor();
            IBay listOfBaysFromTestBay = new Bay();
            listOfBaysFromTestBay.BedsideMonitors = testBay.GetListOfBedsideMonitors();

            Assert.AreEqual(testBay.BedsideMonitors,listOfBaysFromTestBay.BedsideMonitors);
        }