Beispiel #1
0
        public void GetStatusReport_WhenGetStatus_ReturnString()
        {
            // Arrange
            BuildingController buildingController = new BuildingController("test");
            LightManager       lightmanager       = new LightManager();
            DoorManager        doormanager        = new DoorManager();
            FireAlarmManager   firealarmmanager   = new FireAlarmManager();

            // Act
            string lightStatus     = lightmanager.GetStatus();
            string doorStatus      = doormanager.GetStatus();
            string fireAlarmStatus = firealarmmanager.GetStatus();
            string result          = lightStatus + doorStatus + fireAlarmStatus;
            string output          = buildingController.GetStatusReport();

            // Assert
            Assert.IsTrue(result == output);
        }