예제 #1
0
        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
        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
        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
        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
        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
        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
        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
        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
        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
        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
        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
        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
        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
        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
        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.");
        }