Пример #1
0
        public void CalculateSnowBehindParapetAtEavesTest()
        {
            // Arrange
            SnowLoadsController controller = new SnowLoadsController();
            var buildingData = CreateBuildingData(DesignSituation.B3, true);
            var model        = CreateExceptionalSnowBehindParapetAtEaves(buildingData);

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

            // Assert
            Assert.IsNotNull(result);
            Assert.AreEqual("ExceptionalSnowBehindParapetAtEavesResult", result.ViewName);
            Assert.IsTrue(result.Model.GetType() == typeof(ExceptionalSnowLoadSnowBehindParapetAtEaves));
            Assert.AreNotEqual(0, model.ExceptionalSnowBehindParapetAtEaves.SnowLoad);
        }