public void CalculateExceptionalMultispanRoofTest() { // Arrange SnowLoadsController controller = new SnowLoadsController(); var buildingData = CreateBuildingData(DesignSituation.B3, true); var model = CreateExceptionalMultispanRoof(buildingData); // Act ViewResult result = controller.CalculateExceptionalMultispanRoof(model, buildingData) as ViewResult; // Assert Assert.IsNotNull(result); Assert.AreEqual("ExceptionalMultispanRoofResult", result.ViewName); Assert.IsTrue(result.Model.GetType() == typeof(ExceptionalSnowLoadMultispanRoof)); Assert.AreNotEqual(0, model.ExceptionalMultispanRoof.SnowLoad); }