コード例 #1
0
ファイル: ElaboratorTest.cs プロジェクト: landunin/meta-core
        public void ConnectorSubtype2Ref()
        {
            string objectAbsPath = "/@02_TestBenches/@Valid/@ConnectorSubtype2Ref";

            Assert.True(File.Exists(this.mgaFile), "Failed to generate the mga.");

            var success = ElaboratorRunner.RunElaborator(mgaFile, objectAbsPath);

            Assert.True(success, "CyPhyElaborator should have succeeded, but did not.");
        }
コード例 #2
0
ファイル: ElaboratorTest.cs プロジェクト: landunin/meta-core
        public void DesignSpaceHasComponentAssemblyRefsMultiLevel()
        {
            string objectAbsPath = "/@03_DesignSpaces/@Valid/@HasComponentAssemblyRefsMultiLevel";

            Assert.True(File.Exists(this.mgaFile), "Failed to generate the mga.");

            var success = ElaboratorRunner.RunElaborator(mgaFile, objectAbsPath);

            Assert.True(success, "CyPhyElaborator should have succeeded, but did not.");
        }
コード例 #3
0
ファイル: ElaboratorTest.cs プロジェクト: landunin/meta-core
        public void DesignSpaceContainsDerived()
        {
            string objectAbsPath = "/@03_DesignSpaces/@Valid/@ContainsDerived";

            Assert.True(File.Exists(this.mgaFile), "Failed to generate the mga.");

            var success = ElaboratorRunner.RunElaborator(mgaFile, objectAbsPath);

            Assert.True(success, "CyPhyElaborator should have succeeded, but did not.");
        }
コード例 #4
0
ファイル: ElaboratorTest.cs プロジェクト: landunin/meta-core
        public void TestInjectionPointPointsToTheReferredComponentAssembly()
        {
            string objectAbsPath = "/@02_TestBenches/@Invalid/@TestInjectionPointPointsToTheReferredComponentAssembly";

            Assert.True(File.Exists(this.mgaFile), "Failed to generate the mga.");

            var success = ElaboratorRunner.RunElaborator(mgaFile, objectAbsPath);

            Assert.False(success, "CyPhyElaborator should have failed, but did not.");
        }
コード例 #5
0
ファイル: ElaboratorTest.cs プロジェクト: landunin/meta-core
        public void DesignSpaceComponentRefPointsToComponentAndConnections()
        {
            string objectAbsPath = "/@03_DesignSpaces/@Valid/@ComponentRefPointsToComponentAndConnections";

            Assert.True(File.Exists(this.mgaFile), "Failed to generate the mga.");

            var success = ElaboratorRunner.RunElaborator(mgaFile, objectAbsPath);

            Assert.True(success, "CyPhyElaborator should have succeeded, but did not.");
        }
コード例 #6
0
        public void TestBench()
        {
            string objectAbsPath = "/@TestBenches/@RollingWheel";

            Assert.True(File.Exists(this.mgaFile), "Failed to generate the mga.");

            var success = ElaboratorRunner.RunElaborator(mgaFile, objectAbsPath);

            Assert.True(success, "CyPhyElaborator should have succeeded, but did not.");
        }
コード例 #7
0
ファイル: ElaboratorTest.cs プロジェクト: landunin/meta-core
        public void OneTestInjectionPointIsNotInTheSystem()
        {
            string objectAbsPath = "/@02_TestBenches/@Invalid/@OneTestInjectionPointIsNotInTheSystem";

            Assert.True(File.Exists(this.mgaFile), "Failed to generate the mga.");

            var success = ElaboratorRunner.RunElaborator(mgaFile, objectAbsPath);

            Assert.False(success, "CyPhyElaborator should have failed, but did not.");
        }
コード例 #8
0
ファイル: ElaboratorTest.cs プロジェクト: landunin/meta-core
        public void DesignSpaceDC()
        {
            string objectAbsPath = "/@DesignSpace/@DC";

            Assert.True(File.Exists(this.mgaFile), "Failed to generate the mga.");

            var success = ElaboratorRunner.RunElaborator(mgaFile, objectAbsPath);

            Assert.True(success, "CyPhyElaborator should have succeeded, but did not.");
        }
コード例 #9
0
ファイル: ElaboratorTest.cs プロジェクト: landunin/meta-core
        public void StructuralFEATestInjectionPointTest3()
        {
            string objectAbsPath = "/@02_TestBenches/@StructuralFEATestInjectionPointTest3";

            Assert.True(File.Exists(this.mgaFile), "Failed to generate the mga.");

            var success = ElaboratorRunner.RunElaborator(mgaFile, objectAbsPath);

            Assert.True(success, "CyPhyElaborator should have succeeded, but did not.");
        }
コード例 #10
0
ファイル: ElaboratorTest.cs プロジェクト: landunin/meta-core
        public void SimpleHierarchy()
        {
            string objectAbsPath = "/@01_ComponentAssemblies/@Valid/@SimpleHierarchy";

            Assert.True(File.Exists(this.mgaFile), "Failed to generate the mga.");

            var success = ElaboratorRunner.RunElaborator(mgaFile, objectAbsPath);

            Assert.True(success, "CyPhyElaborator should have succeeded, but did not.");
        }
コード例 #11
0
ファイル: ElaboratorTest.cs プロジェクト: landunin/meta-core
        public void CircularReferencesBetweenTrees()
        {
            string objectAbsPath = "/@01_ComponentAssemblies/@Invalid/@CircularReferencesBetweenTrees";

            Assert.True(File.Exists(this.mgaFile), "Failed to generate the mga.");

            var success = ElaboratorRunner.RunElaborator(mgaFile, objectAbsPath);

            Assert.False(success, "CyPhyElaborator should have failed, but did not.");
        }
コード例 #12
0
ファイル: ElaboratorTest.cs プロジェクト: landunin/meta-core
        public void HasSubtypes()
        {
            string objectAbsPath = "/@01_ComponentAssemblies/@Valid/@ContainsDerivedArchetype";

            Assert.True(File.Exists(this.mgaFile), "Failed to generate the mga.");

            var success = ElaboratorRunner.RunElaborator(mgaFile, objectAbsPath);

            Assert.True(success, "CyPhyElaborator should have succeeded, but did not.");
        }
コード例 #13
0
ファイル: ElaboratorTest.cs プロジェクト: landunin/meta-core
        public void InstanceGUIDWithComponentAssemblyRefOutsideOfTreeWhichHasOnlyComponents()
        {
            string objectAbsPath = "/@01_ComponentAssemblies/@01_InstanceGUIDTests/@InstanceGUIDWithComponentAssemblyRefOutsideOfTreeWhichHasOnlyComponents";

            Assert.True(File.Exists(this.mgaFile), "Failed to generate the mga.");

            var success = ElaboratorRunner.RunElaborator(mgaFile, objectAbsPath);

            Assert.True(success, "CyPhyElaborator should have succeeded, but did not.");
        }
コード例 #14
0
        public void LibraryComponentAssembly()
        {
            string objectAbsPath = "/@_Lib_/@CAWheel/@Wheel";

            Assert.True(File.Exists(this.mgaFile), "Failed to generate the mga.");

            var success = ElaboratorRunner.RunElaborator(mgaFile, objectAbsPath);

            Assert.False(success, "CyPhyElaborator should have failed, but did not.");
        }
コード例 #15
0
ファイル: ElaboratorTest.cs プロジェクト: landunin/meta-core
        public void DesignSpaceWithinTheTree()
        {
            string objectAbsPath = "/@03_DesignSpaces/@Invalid/@WithinTheTree";

            Assert.True(File.Exists(this.mgaFile), "Failed to generate the mga.");

            var success = ElaboratorRunner.RunElaborator(mgaFile, objectAbsPath);

            Assert.False(success, "CyPhyElaborator should have failed, but did not.");
        }
コード例 #16
0
ファイル: ElaboratorTest.cs プロジェクト: landunin/meta-core
        public void NullReferenceTestInjectionPoint()
        {
            string objectAbsPath = "/@02_TestBenches/@Valid/@NullReferenceTestInjectionPoint";

            Assert.True(File.Exists(this.mgaFile), "Failed to generate the mga.");

            var success = ElaboratorRunner.RunElaborator(mgaFile, objectAbsPath);

            Assert.True(success, "CyPhyElaborator should have succeeded, but did not.");
        }
コード例 #17
0
        public void RefersToSingle()
        {
            string objectAbsPath = "/@TestBenches/@BallisticCriticalComponent/@RefersToSingle";

            Assert.True(File.Exists(this.mgaFile), "Failed to generate the mga.");

            var success = ElaboratorRunner.RunElaborator(mgaFile, objectAbsPath);

            Assert.True(success, "CyPhyElaborator should have succeeded, but did not.");
        }
コード例 #18
0
ファイル: ElaboratorTest.cs プロジェクト: landunin/meta-core
        public void InstanceGUIDComponentReferenceChain()
        {
            string objectAbsPath = "/@01_ComponentAssemblies/@01_InstanceGUIDTests/@InstanceGUIDComponentReferenceChain";

            Assert.True(File.Exists(this.mgaFile), "Failed to generate the mga.");

            // check context
            var success = ElaboratorRunner.RunElaborator(mgaFile, objectAbsPath);

            Assert.True(success, "CyPhyElaborator should have succeeded, but did not.");
        }