23 references to TryMatchMultiWordPattern
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (23)
Utilities\PatternMatcherTests.cs (23)
235var match = TryMatchMultiWordPattern("[|AddMetadataReference|]", "addmetadatareference");
243var match = TryMatchMultiWordPattern("[|Add|]MetadataReference", "add");
251var match = TryMatchMultiWordPattern("Add[|Metadata|]Reference", "metadata");
259var match = TryMatchMultiWordPattern("[|Add|]MetadataReference", "Add");
267var match = TryMatchMultiWordPattern("Add[|Metadata|]Reference", "Metadata");
275var match = TryMatchMultiWordPattern("[|A|]ddMetadataReference", "A");
283var match = TryMatchMultiWordPattern("Add[|M|]etadataReference", "M");
291var match = TryMatchMultiWordPattern("[|Add|][|Metadata|]Reference", "add metadata");
300var match = TryMatchMultiWordPattern("[|A|]dd[|M|]etadataReference", "A M");
309var match = TryMatchMultiWordPattern("[|A|]dd[|M|]etadataReference", "AM");
317var match = TryMatchMultiWordPattern("Add[|Metadata|][|Ref|]erence", "ref Metadata");
325var match = TryMatchMultiWordPattern("Add[|M|]etadata[|Ref|]erence", "ref M");
333var match = TryMatchMultiWordPattern("[|A|]dd[|M|]etadata[|Re|]ference", "AMRe");
340=> Assert.Null(TryMatchMultiWordPattern("AddMetadataReference", string.Empty));
344=> Assert.Null(TryMatchMultiWordPattern("AddMetadataReference", " "));
349var match = TryMatchMultiWordPattern("[|Add|][|Meta|]dataReference", "add Meta");
358var match = TryMatchMultiWordPattern("[|Add|][|Meta|]dataReference", "Add meta");
367var match = TryMatchMultiWordPattern("[|Add|][|Meta|]dataReference", "Add Meta");
375=> Assert.Null(TryMatchMultiWordPattern("AddMetadataReference", "mEta"));
379=> Assert.Null(TryMatchMultiWordPattern("AddMetadataReference", "Data"));
384var match = TryMatchMultiWordPattern("Get[|K|]ey[|W|]ord", "K*W");
391=> Assert.Null(TryMatchMultiWordPattern("Operator", "a"));
396var match = TryMatchMultiWordPattern("Goo[|A|]ttribute", "a");