public void CalculateExceptionalOverDoorOrLoadingBayTest() { // Arrange SnowLoadsController controller = new SnowLoadsController(); var buildingData = CreateBuildingData(DesignSituation.B3, true); var model = CreateExceptionalOverDoorOrLoadingBay(buildingData); // Act ViewResult result = controller.CalculateExceptionalOverDoorOrLoadingBay(model, buildingData) as ViewResult; // Assert Assert.IsNotNull(result); Assert.AreEqual("ExceptionalOverDoorOrLoadingBayResult", result.ViewName); Assert.IsTrue(result.Model.GetType() == typeof(ExceptionalSnowLoadOverDoorOrLoadingBay)); Assert.AreNotEqual(0, model.ExceptionalOverDoorOrLoadingBay.SnowLoad); }