public void CalculateExceptionalRoofAbuttingToTallerConstructionTest() { // Arrange SnowLoadsController controller = new SnowLoadsController(); var buildingData = CreateBuildingData(DesignSituation.B3, true); var model = CreateExceptionalRoofAbuttingToTallerConstruction(buildingData); // Act ViewResult result = controller.CalculateExceptionalRoofAbuttingToTallerConstruction(model, buildingData) as ViewResult; // Assert Assert.IsNotNull(result); Assert.AreEqual("ExceptionalRoofAbuttingToTallerConstructionResult", result.ViewName); Assert.IsTrue(result.Model.GetType() == typeof(ExceptionalSnowLoadRoofAbuttingToTallerConstruction)); Assert.AreNotEqual(0, model.ExceptionalRoofAbuttingToTallerConstruction.SnowLoadNearTheEdge); }