Пример #1
0
        public void TwoLevels()
        {
            var translationUnit = new NestedCompoundTranslationUnit();

            translationUnit.AddTranslationUnit(new NestedCompoundTranslationUnit());

            string output = translationUnit.Translate();

            string[] lines = GetAllLinesInString(output);

            // line 1
            Assert.AreNotEqual(" ", lines[0][0].ToString());
            Assert.AreNotEqual(" ", lines[0][1].ToString());

            // Line 2
            Assert.AreEqual(" ", lines[1][0].ToString());
            Assert.AreEqual(" ", lines[1][1].ToString());

            // Line 3
            Assert.AreEqual(" ", lines[2][0].ToString());
            Assert.AreEqual(" ", lines[2][1].ToString());

            // Line 4
            //Assert.AreNotEqual(" ", lines[3][0]);
        }
        public void OneLevel()
        {
            var translationUnit = new NestedCompoundTranslationUnit();

            string output = translationUnit.Translate();
            string[] lines = GetAllLinesInString(output);

            // Line 1
            Assert.AreNotEqual(" ", lines[0][0].ToString());
            Assert.AreNotEqual(" ", lines[0][1].ToString());

            // Line 2
            //Assert.AreNotEqual(" ", lines[1][0]);
        }
Пример #3
0
        public void OneLevel()
        {
            var translationUnit = new NestedCompoundTranslationUnit();

            string output = translationUnit.Translate();

            string[] lines = GetAllLinesInString(output);

            // Line 1
            Assert.AreNotEqual(" ", lines[0][0].ToString());
            Assert.AreNotEqual(" ", lines[0][1].ToString());

            // Line 2
            //Assert.AreNotEqual(" ", lines[1][0]);
        }
        public void TwoLevels()
        {
            var translationUnit = new NestedCompoundTranslationUnit();
            translationUnit.AddTranslationUnit(new NestedCompoundTranslationUnit());

            string output = translationUnit.Translate();
            string[] lines = GetAllLinesInString(output);

            // line 1
            Assert.AreNotEqual(" ", lines[0][0].ToString());
            Assert.AreNotEqual(" ", lines[0][1].ToString());

            // Line 2
            Assert.AreEqual(" ", lines[1][0].ToString());
            Assert.AreEqual(" ", lines[1][1].ToString());

            // Line 3
            Assert.AreEqual(" ", lines[2][0].ToString());
            Assert.AreEqual(" ", lines[2][1].ToString());

            // Line 4
            //Assert.AreNotEqual(" ", lines[3][0]);
        }