Esempio n. 1
0
 public ReturnDocumentEdits_Data()
 {
     Add(
         ExampleDocumentText,
         ExampleDocumentText.Replace("namespace CSharpTutorials", "namespace Something.Else.Entirely"),
         new NormalizedToken[] {
         "using (member:static|abstract)", "System (member:static|abstract)", "using (parameter:none)",
         "System (string:none)", "Collections (namespace:deprecated)", "Generic (type:none)",
         "using (property:none)", "System (documentation:definition|abstract)",
         "Linq (documentation:definition)", "using (documentation:none)", "System (label:none)",
         "Text (documentation:definition|abstract)", "using (documentation:none)",
         "System (documentation:documentation)", "Threading (documentation:definition|readonly)",
         "Tasks (documentation:none)", "namespace (function:readonly)", "Something (function:readonly)",
         "Else (class:abstract)", "Entirely (regexp:documentation|abstract|deprecated)",
         "{ (type:documentation)", "class (label:none)", "Program (documentation:none)",
         "{ (documentation:none)", "static (number:documentation)", "void (function:none)",
         "Main (function:none)", "string[] (function:documentation|static)", "args (function:none)",
         "{ (struct:declaration|abstract)", "string (type:none)", "message (class:none)",
         "= (macro:none)", "Hello (documentation:none)", "World!! (class:none)",
         "Console (struct:definition)", "WriteLine (parameter:definition|readonly)",
         "message (struct:definition)", "} (regexp:none)", "} (class:static|abstract)",
         "} (enum:declaration|definition)"
     });
     Add("using", "using System;",
         new NormalizedToken[] {
         "using (member:static|abstract)", "System (member:static|abstract)"
     });
     Add("using System;", "using", new NormalizedToken[] {
         "using (member:static|abstract)"
     });
 }
 public ReturnDocumentEditsData()
 {
     Add(
         ExampleDocumentText,
         ExampleDocumentText.Replace("namespace CSharpTutorials", "namespace Something.Else.Entirely"),
         new NormalizedToken[] {
         "using (macro:async|deprecated)", "System (macro:async|deprecated)", "using (event:none)", "System (number:none)", "Collections (struct:readonly)",
         "Generic (class:none)", "using (variable:modification|defaultLibrary)", "System (comment:static|deprecated)", "Linq (comment:definition)",
         "using (comment:none)", "System (enumMember:none)", "Text (comment:static|deprecated)", "using (comment:none)", "System (comment:declaration)",
         "Threading (comment:static|defaultLibrary)", "Tasks (comment:none)", "namespace (property:defaultLibrary)", "Something (property:defaultLibrary)",
         "Else (enum:deprecated)", "Entirely (operator:declaration|deprecated|modification)", "{ (struct:documentation)", "class (enumMember:none)",
         "Program (comment:none)", "{ (comment:none)", "static (regexp:documentation)", "void (macro:none)", "Main (macro:none)",
         "string[] (property:declaration|abstract)", "args (macro:none)", "{ (interface:documentation|declaration|deprecated)", "string (struct:none)",
         "message (enum:none)", "= (label:none)", "Hello (comment:none)", "World!! (enum:none)", "Console (interface:static)",
         "WriteLine (event:async|modification)", "message (interface:static)", "} (operator:none)", "} (enum:async|deprecated)", "} (function:declaration|async)"
     }
         );
     Add(
         "using", "using System;",
         new NormalizedToken[] {
         "using (macro:async|deprecated)", "System (macro:async|deprecated)"
     }
         );
     Add(
         "using System;", "using", new NormalizedToken[] {
         "using (macro:async|deprecated)"
     }
         );
 }