Exemple #1
0
 public void TestSnippet()
 {
     string[] expected = new string[]
     {
         "namespace Test.Namespace",
         "{",
         "    public class TestClass",
         "    {",
         "        public void SnippetMember()",
         "        {",
         "        ",
         "        }",
         "",
         "        public void Method()",
         "        {",
         "            SnippetStatement",
         "                on multiple lines",
         "            i = snippet expression;",
         "            i2 = multiline",
         "                snippet expression;",
         "        }",
         "    }",
         "}"
     };
     ProviderTestUtils.DoCSharpTest(expected, ProviderTestUtils.TestSnippetCompileUnit());
 }