Beispiel #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.");
        }
Beispiel #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.");
        }
Beispiel #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.");
        }
Beispiel #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.");
        }
Beispiel #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.");
        }
        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.");
        }
Beispiel #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.");
        }
Beispiel #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.");
        }
Beispiel #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.");
        }
Beispiel #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.");
        }
Beispiel #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.");
        }
Beispiel #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.");
        }
Beispiel #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.");
        }
        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.");
        }
Beispiel #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.");
        }
Beispiel #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.");
        }
        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.");
        }
Beispiel #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.");
        }