public void SnowguardsTest_CalculateSnowLoad_Success() { var snowguards = new Snowguards(10, 30, 0.9); snowguards.CalculateSnowLoad(); Assert.AreEqual(4.5, Math.Round(snowguards.ForceExertedBySnow, 3), "Force exerted by snow is not calculated properly."); }
public void SnowguardsTest_Constructor_Success() { var snowguards = new Snowguards(10, 30, 0.9); Assert.IsNotNull(snowguards, "Snowguards should be created."); Assert.AreEqual(10, snowguards.Width, "Width should be set at construction time."); Assert.AreEqual(30, snowguards.Slope, "Slope should be set at construction time."); Assert.AreEqual(0.9, snowguards.SnowLoadOnRoofValue, "Snow load should be set at construction time."); }
public IResult Calculate() { Snowguards snowguards = GetSnowguards(); snowguards.CalculateSnowLoad(); var result = new Result(); result.Properties.Add("F_s_", snowguards.ForceExertedBySnow); return(result); }
public SnowLoadSnowguards() { BuildingData = new BuildingData(); Snowguards = new Snowguards(0, 0, 0); }