示例#1
0
        public void CalculateRoofAbuttingToTallerConstructionTest()
        {
            // Arrange
            SnowLoadsController controller = new SnowLoadsController();
            var buildingData = CreateBuildingData();
            var model        = CreateRoofAbuttingToTallerConstruction(buildingData);

            // Act
            ViewResult result = controller.CalculateRoofAbuttingToTallerConstruction(model, buildingData) as ViewResult;

            // Assert
            Assert.IsNotNull(result);
            Assert.AreEqual("RoofAbuttingToTallerConstructionResult", result.ViewName);
            Assert.IsTrue(result.Model.GetType() == typeof(SnowLoadRoofAbuttingToTallerConstruction));
            Assert.AreNotEqual(0, model.RoofAbuttingToTallerConstruction.SnowLoadOnRoofValue);
        }