Exemplo n.º 1
0
        public void CalculateCylindricalRoofTest()
        {
            // Arrange
            SnowLoadsController controller = new SnowLoadsController();
            var buildingData = CreateBuildingData();
            var model        = CreateCylindricalRoof(buildingData);

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

            // Assert
            Assert.IsNotNull(result);
            Assert.AreEqual("CylindricalRoofResult", result.ViewName);
            Assert.IsTrue(result.Model.GetType() == typeof(SnowLoadCylindricalRoof));
            Assert.AreNotEqual(0, model.CylindricalRoof.SnowLoadOnRoofValue);
        }