예제 #1
0
        public virtual void testAssemblySectionCollection()
        {
            JDFAssemblySection ass = @as.appendAssemblySection();

            ass = @as.appendAssemblySection();
            JDFAssemblySection asss = ass.appendAssemblySection();

            asss.setAssemblyIDs(new VString("a b c", " "));
            ass = @as.getAssemblySection(0);
            ass = @as.getAssemblySection(1);
            ass.setXMLComment("MyComment");
            ass = @as.getAssemblySection(2);

            ICollection <JDFAssemblySection> vASS = @as.getAllAssemblySection();

            Assert.IsTrue(vASS.Count == 2);
        }
예제 #2
0
        public virtual void testSubAssemblySection()
        {
            JDFAssemblySection ass = @as.appendAssemblySection();

            ass = @as.appendAssemblySection();
            JDFAssemblySection asss = ass.appendAssemblySection();

            asss.setAssemblyIDs(new VString("a b c", " "));
            ass = @as.getAssemblySection(0);
            ass = @as.getAssemblySection(1);
            ass.setXMLComment("MyComment");
            ass = @as.getAssemblySection(2);

//		Collection<JDFAssemblySection> vASS =
            @as.getAllAssemblySection();

            Assert.IsTrue(@as.isValid(EnumValidationLevel.Incomplete));
        }