コード例 #1
0
 public void ReturnsValueForCurtainwall()
 {
     BuildingElementComponent bec = new BuildingElementComponent("AluminumCurtainWall");
     ComponentReportEntry wEntr = bec.GetComponentWeight();
     double w = wEntr.LoadValue;
     Assert.AreEqual(10.0, w);
 }
コード例 #2
0
ファイル: ComponentWeight.cs プロジェクト: Wosad/Wosad.Dynamo
        public static Dictionary<string, object> ComponentWeight(string ComponentId,
            double ComponentOption1, double ComponentOption2, double ComponentValue)
        {
            //Default values
            double q_D = 0;
            int Option1 = (int)ComponentOption1;
            int Option2 = (int)ComponentOption2;

            BuildingElementComponent bec = new BuildingElementComponent(ComponentId, Option1, Option2, ComponentValue, "");
            try
            {
                q_D = bec.GetComponentWeight().LoadValue;
            }
            catch (System.Exception)
            {


            }


            return new Dictionary<string, object>
            {
                { "q_D", q_D }
 
            };
        }
コード例 #3
0
        public void GFRC120pcfAnd1_2BackingReturnsValue()
        {
            BuildingElementComponent bec = new BuildingElementComponent("GFRCPanels", 0, 0, 0.0, "");
            double gfrcEntr = bec.GetComponentWeight().LoadValue;

            Assert.Equal(5, gfrcEntr);
        }
コード例 #4
0
 public void ReturnsValueFor24()
 {
     BuildingElementComponent bec = new BuildingElementComponent("SolidConcreteSlab",1,2,24,"");
     ComponentReportEntry wEntr = bec.GetComponentWeight();
     double w = wEntr.LoadValue;
     Assert.AreEqual(300.0, w);
 }
コード例 #5
0
        public void ReturnsValueFor24()
        {
            BuildingElementComponent bec   = new BuildingElementComponent("SolidConcreteSlab", 1, 2, 24, "");
            ComponentReportEntry     wEntr = bec.GetComponentWeight();
            double w = wEntr.LoadValue;

            Assert.AreEqual(300.0, w);
        }
コード例 #6
0
        public void ReturnsValueForCurtainwall()
        {
            BuildingElementComponent bec   = new BuildingElementComponent("AluminumCurtainWall");
            ComponentReportEntry     wEntr = bec.GetComponentWeight();
            double w = wEntr.LoadValue;

            Assert.AreEqual(10.0, w);
        }
コード例 #7
0
        public static Dictionary <string, object> ComponentWeight(string ComponentId,
                                                                  double ComponentOption1, double ComponentOption2, double ComponentValue)
        {
            //Default values
            double q_D     = 0;
            int    Option1 = (int)ComponentOption1;
            int    Option2 = (int)ComponentOption2;

            BuildingElementComponent bec = new BuildingElementComponent(ComponentId, Option1, Option2, ComponentValue, "");

            try
            {
                q_D = bec.GetComponentWeight().LoadValue;
            }
            catch (System.Exception)
            {
            }


            return(new Dictionary <string, object>
            {
                { "q_D", q_D }
            });
        }
コード例 #8
0
ファイル: GFRCTests.cs プロジェクト: Wosad/Wosad.Design
 public void GFRC120pcfAnd1_2BackingReturnsValue()
 {
     BuildingElementComponent bec = new BuildingElementComponent("GFRCPanels", 0, 0, 0.0, "");
     double gfrcEntr = bec.GetComponentWeight().LoadValue;
     Assert.AreEqual(5, gfrcEntr);
 }