Example #1
0
        public void test_07()
        {
            String         stream = "Set(Bag(Sequence(Film)))";
            CoreClassifier c      = doParseTestOK(stream, this.getCurrentMethodName(), stream, typeof(SetType));
            SetType        s      = (SetType)c;

            Assert.IsTrue(s.getElementType() is BagType);
            BagType b = (BagType)s.getElementType();

            Assert.IsTrue(b.getElementType() is SequenceType);
            SequenceType seq = (SequenceType)b.getElementType();

            Assert.IsTrue(seq.getElementType() is CoreClassifier);
            Assert.AreEqual("Film", seq.getElementType().getName());
        }