Exemplo n.º 1
0
        public void TestFunction4()
        {
            RegexForCSharp regex = new RegexForCSharp();
            var            found = regex.FindDefinedFunctions("CSharpProjectInformation cSharpProjectInformation = new CSharpProjectInformation();");

            Assert.AreEqual(0, found.Count);
        }
Exemplo n.º 2
0
        public void TestFunction3()
        {
            RegexForCSharp regex = new RegexForCSharp();
            var            found = regex.FindDefinedFunctions("                found.Add(varname);");

            Assert.AreEqual(0, found.Count);
        }
Exemplo n.º 3
0
        public void TestFunction2()
        {
            RegexForCSharp regex = new RegexForCSharp();
            var            found = regex.FindDefinedFunctions("public void Build(IBuilder builder)");

            Assert.AreEqual(1, found.Count);
            Assert.AreEqual("Build", found[0]);
        }
Exemplo n.º 4
0
        public void TestFunction()
        {
            RegexForCSharp regex = new RegexForCSharp();
            var            found = regex.FindDefinedFunctions(" void TestMethod1()");

            Assert.AreEqual(1, found.Count);
            Assert.AreEqual("TestMethod1", found[0]);
        }