Ejemplo n.º 1
0
        public void TestAddDesigner()
        {
            SOAnalysis analysis = new SOAnalysis(TEST_NAME);

            // analysis should not be null
            Assert.NotNull(analysis);

            // Designers should have zero items
            Assert.IsEmpty(analysis.Designers);

            // Add a SODesigner
            SODesigner designer = new SODesigner("test designer 0001");

            analysis.AddDesigner(designer);

            // Designers should now have one item
            Assert.AreEqual(1, analysis.Designers.Length);
            Assert.AreEqual(designer, analysis.Designers[0]);

            // clear the designers
            analysis.ClearDesigners();

            // Designers should have zero items
            Assert.IsEmpty(analysis.Designers);
        }
Ejemplo n.º 2
0
 public SOAnalysis_Component(string name, string nickname, string description, SOAnalysis analysis)
     : base(name,
            nickname,
            description,
            GHSustainabilityOpenFramework.CATEGORY,
            GHSustainabilityOpenFramework.ANALYSIS_SUBCATEGORY)
 {
     this.m_Analysis = analysis;
 }
Ejemplo n.º 3
0
        public void TestName()
        {
            SOAnalysis analysis = new SOAnalysis(TEST_NAME);

            // designer should not be null
            Assert.NotNull(analysis);

            // The name should be the same
            Assert.AreEqual(TEST_NAME, analysis.Name);
        }