Example #1
0
        public void GetSourceFileExtentionsTest()
        {
            CCsICloneExtension target = new CCsICloneExtension();
            string             actual = target.GetSourceFileExtentions();

            Assert.AreNotEqual(string.Empty, actual);
        }
Example #2
0
        public void GetCommentSymbolsTest()
        {
            CCsICloneExtension target = new CCsICloneExtension();
            string             actual = target.GetCommentSymbols();

            Assert.AreNotEqual(string.Empty, actual);
        }
Example #3
0
        public void SyntacticizeTest2()
        {
            string filename = Path.GetFullPath("UnitTestSampleFile2.cs");

            Assert.IsTrue(File.Exists(filename));

            CCsICloneExtension        target = new CCsICloneExtension();
            CTokenizerParms           args   = new CTokenizerParms(filename, new CSourceFileID());
            CSyntacticUnitsCollection actual = target.Syntacticize(args);

            Assert.AreEqual(12, actual.Size());
            Assert.AreEqual(37, actual[0].Size());
        }
Example #4
0
        public void LanguageIDTest()
        {
            CCsICloneExtension target = new CCsICloneExtension();

            Assert.AreEqual(LANGUAGES.LANGUAGE_C_SHARP, target.LanguageID());
        }