Skip to content

Commit

Permalink
RenameTestHost
Browse files Browse the repository at this point in the history
  • Loading branch information
tmat committed Jul 11, 2020
1 parent 8932616 commit 714fdfa
Show file tree
Hide file tree
Showing 28 changed files with 857 additions and 844 deletions.
52 changes: 26 additions & 26 deletions src/EditorFeatures/Test2/Rename/CSharp/AliasTests.vb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Namespace Microsoft.CodeAnalysis.Editor.UnitTests.Rename.CSharp

<WorkItem(543759, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/543759")>
<Theory, CombinatorialData, Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub RenameNamespaceAlias(host As TestHost)
Public Sub RenameNamespaceAlias(host As RenameTestHost)
Using result = RenameEngineResult.Create(_outputHelper,
<Workspace>
<Project Language="C#" CommonReferences="true">
Expand All @@ -37,7 +37,7 @@ Namespace Microsoft.CodeAnalysis.Editor.UnitTests.Rename.CSharp

<Theory>
<CombinatorialData, Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub RenameNamespaceAndAlias(host As TestHost)
Public Sub RenameNamespaceAndAlias(host As RenameTestHost)
Using result = RenameEngineResult.Create(_outputHelper,
<Workspace>
<Project Language="C#" CommonReferences="true">
Expand All @@ -58,7 +58,7 @@ Namespace Microsoft.CodeAnalysis.Editor.UnitTests.Rename.CSharp

<Theory>
<CombinatorialData, Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub RenameNamespaceButNotDifferentlyNamedAlias(host As TestHost)
Public Sub RenameNamespaceButNotDifferentlyNamedAlias(host As RenameTestHost)
Using result = RenameEngineResult.Create(_outputHelper,
<Workspace>
<Project Language="C#" CommonReferences="true">
Expand All @@ -79,7 +79,7 @@ Namespace Microsoft.CodeAnalysis.Editor.UnitTests.Rename.CSharp

<Theory>
<CombinatorialData, Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub RenameConstructedTypeAliasFromUse(host As TestHost)
Public Sub RenameConstructedTypeAliasFromUse(host As RenameTestHost)
Using result = RenameEngineResult.Create(_outputHelper,
<Workspace>
<Project Language="C#" CommonReferences="true">
Expand All @@ -102,7 +102,7 @@ Namespace Microsoft.CodeAnalysis.Editor.UnitTests.Rename.CSharp

<Theory>
<CombinatorialData, Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub RenameConstructedTypeAliasFromDeclaration(host As TestHost)
Public Sub RenameConstructedTypeAliasFromDeclaration(host As RenameTestHost)
Using result = RenameEngineResult.Create(_outputHelper,
<Workspace>
<Project Language="C#" CommonReferences="true">
Expand All @@ -124,7 +124,7 @@ Namespace Microsoft.CodeAnalysis.Editor.UnitTests.Rename.CSharp

<Theory>
<CombinatorialData, Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub RenameConstructedTypeAliasFromDeclaration2(host As TestHost)
Public Sub RenameConstructedTypeAliasFromDeclaration2(host As RenameTestHost)
Using result = RenameEngineResult.Create(_outputHelper,
<Workspace>
<Project Language="C#" CommonReferences="true">
Expand All @@ -146,7 +146,7 @@ Namespace Microsoft.CodeAnalysis.Editor.UnitTests.Rename.CSharp

<Theory>
<CombinatorialData, Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub RenameSimpleTypeAliasFromUse(host As TestHost)
Public Sub RenameSimpleTypeAliasFromUse(host As RenameTestHost)
Using result = RenameEngineResult.Create(_outputHelper,
<Workspace>
<Project Language="C#" CommonReferences="true">
Expand All @@ -168,7 +168,7 @@ Namespace Microsoft.CodeAnalysis.Editor.UnitTests.Rename.CSharp

<Theory>
<CombinatorialData, Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub RenameSimpleTypeAliasFromDeclaration(host As TestHost)
Public Sub RenameSimpleTypeAliasFromDeclaration(host As RenameTestHost)
Using result = RenameEngineResult.Create(_outputHelper,
<Workspace>
<Project Language="C#" CommonReferences="true">
Expand All @@ -190,7 +190,7 @@ Namespace Microsoft.CodeAnalysis.Editor.UnitTests.Rename.CSharp

<Theory>
<CombinatorialData, Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub RenameSimpleSpecialTypeAliasVariable(host As TestHost)
Public Sub RenameSimpleSpecialTypeAliasVariable(host As RenameTestHost)
Using result = RenameEngineResult.Create(_outputHelper,
<Workspace>
<Project Language="C#" CommonReferences="true">
Expand All @@ -212,7 +212,7 @@ Namespace Microsoft.CodeAnalysis.Editor.UnitTests.Rename.CSharp

<Theory>
<CombinatorialData, Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub RenameSimpleSpecialTypeDoubleAliasVariable(host As TestHost)
Public Sub RenameSimpleSpecialTypeDoubleAliasVariable(host As RenameTestHost)
Using result = RenameEngineResult.Create(_outputHelper,
<Workspace>
<Project Language="C#" CommonReferences="true">
Expand All @@ -235,7 +235,7 @@ Namespace Microsoft.CodeAnalysis.Editor.UnitTests.Rename.CSharp

<Theory>
<CombinatorialData, Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub RenameSimpleTypeAliasVariable(host As TestHost)
Public Sub RenameSimpleTypeAliasVariable(host As RenameTestHost)
Using result = RenameEngineResult.Create(_outputHelper,
<Workspace>
<Project Language="C#" CommonReferences="true">
Expand All @@ -257,7 +257,7 @@ Namespace Microsoft.CodeAnalysis.Editor.UnitTests.Rename.CSharp

<Theory>
<CombinatorialData, Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub RenameAliasNoConflict(host As TestHost)
Public Sub RenameAliasNoConflict(host As RenameTestHost)
Using result = RenameEngineResult.Create(_outputHelper,
<Workspace>
<Project Language="C#" CommonReferences="true">
Expand Down Expand Up @@ -290,7 +290,7 @@ public class C3

<Theory>
<CombinatorialData, Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub RenameAliasToSameNameNoConflict(host As TestHost)
Public Sub RenameAliasToSameNameNoConflict(host As RenameTestHost)
Using result = RenameEngineResult.Create(_outputHelper,
<Workspace>
<Project Language="C#" CommonReferences="true">
Expand Down Expand Up @@ -318,7 +318,7 @@ public class C3
<Theory>
<WorkItem(586743, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/586743")>
<CombinatorialData, Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub RenameOneDuplicateAliasToNoConflict(host As TestHost)
Public Sub RenameOneDuplicateAliasToNoConflict(host As RenameTestHost)
Using result = RenameEngineResult.Create(_outputHelper,
<Workspace>
<Project Language="C#" CommonReferences="true">
Expand All @@ -345,7 +345,7 @@ public class C3
<Theory>
<WorkItem(542693, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/542693")>
<CombinatorialData, Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub RenameOuterAliasWithNestedAlias(host As TestHost)
Public Sub RenameOuterAliasWithNestedAlias(host As RenameTestHost)
Using result = RenameEngineResult.Create(_outputHelper,
<Workspace>
<Project Language="C#" CommonReferences="true">
Expand All @@ -371,7 +371,7 @@ namespace N
<Theory>
<WorkItem(10028, "DevDiv_Projects/Roslyn")>
<CombinatorialData, Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub RenameConflictWithAlias(host As TestHost)
Public Sub RenameConflictWithAlias(host As RenameTestHost)
Using result = RenameEngineResult.Create(_outputHelper,
<Workspace>
<Project Language="C#" CommonReferences="true">
Expand Down Expand Up @@ -401,7 +401,7 @@ class C1
<Theory>
<WorkItem(579200, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/579200")>
<CombinatorialData, Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub Bug579200_RenameNestedAliasTarget(host As TestHost)
Public Sub Bug579200_RenameNestedAliasTarget(host As RenameTestHost)
Using result = RenameEngineResult.Create(_outputHelper,
<Workspace>
<Project Language="C#" CommonReferences="true">
Expand Down Expand Up @@ -429,7 +429,7 @@ namespace N
<Theory>
<WorkItem(579214, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/579214")>
<CombinatorialData, Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub Bug579214_RenameAttributeNamedDynamic(host As TestHost)
Public Sub Bug579214_RenameAttributeNamedDynamic(host As RenameTestHost)
Using result = RenameEngineResult.Create(_outputHelper,
<Workspace>
<Project Language="C#" CommonReferences="true">
Expand All @@ -446,7 +446,7 @@ class C : [|$$dynamic|]::Object { }
<Theory>
<WorkItem(629695, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/629695")>
<CombinatorialData, Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub Bug629695_DetectConflictWithAliasInSameBlockCompUnit(host As TestHost)
Public Sub Bug629695_DetectConflictWithAliasInSameBlockCompUnit(host As RenameTestHost)
Using result = RenameEngineResult.Create(_outputHelper,
<Workspace>
<Project Language="C#" CommonReferences="true">
Expand Down Expand Up @@ -491,7 +491,7 @@ class Program
<Theory>
<WorkItem(629695, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/629695")>
<CombinatorialData, Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub Bug629695_DetectConflictWithAliasInSameBlockNSDecl(host As TestHost)
Public Sub Bug629695_DetectConflictWithAliasInSameBlockNSDecl(host As RenameTestHost)
Using result = RenameEngineResult.Create(_outputHelper,
<Workspace>
<Project Language="C#" CommonReferences="true">
Expand Down Expand Up @@ -539,7 +539,7 @@ namespace X
<Theory>
<WorkItem(629695, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/629695")>
<CombinatorialData, Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub Bug629695_DetectConflictWithAliasInSameBlockWithEscaping(host As TestHost)
Public Sub Bug629695_DetectConflictWithAliasInSameBlockWithEscaping(host As RenameTestHost)
Using result = RenameEngineResult.Create(_outputHelper,
<Workspace>
<Project Language="C#" CommonReferences="true">
Expand Down Expand Up @@ -587,7 +587,7 @@ namespace X
<Theory>
<WorkItem(603365, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/603365"), WorkItem(745833, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/745833")>
<CombinatorialData, Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub Bug603365_RenameAliasToClassNameOnlyFixesAliasUsages_1(host As TestHost)
Public Sub Bug603365_RenameAliasToClassNameOnlyFixesAliasUsages_1(host As RenameTestHost)
Using result = RenameEngineResult.Create(_outputHelper,
<Workspace>
<Project Language="C#" CommonReferences="true">
Expand Down Expand Up @@ -615,7 +615,7 @@ namespace N
<Theory>
<WorkItem(603365, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/603365")>
<CombinatorialData, Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub Bug603365_RenameAliasToClassNameOnlyFixesAliasUsages_2(host As TestHost)
Public Sub Bug603365_RenameAliasToClassNameOnlyFixesAliasUsages_2(host As RenameTestHost)
Using result = RenameEngineResult.Create(_outputHelper,
<Workspace>
<Project Language="C#" CommonReferences="true">
Expand Down Expand Up @@ -645,7 +645,7 @@ namespace N
<WorkItem(633860, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/633860")>
<WorkItem(632303, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/632303")>
<CombinatorialData, Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub RenameAliasToAttributeAndEndingWithAttributeAttribute(host As TestHost)
Public Sub RenameAliasToAttributeAndEndingWithAttributeAttribute(host As RenameTestHost)
Using result = RenameEngineResult.Create(_outputHelper,
<Workspace>
<Project Language="C#" CommonReferences="true">
Expand Down Expand Up @@ -680,7 +680,7 @@ class Program
<WorkItem(633860, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/633860")>
<WorkItem(632303, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/632303")>
<CombinatorialData, Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub RenameAliasToAttributeAndEndingWithAttributeAttributeWithResolvedConflict(host As TestHost)
Public Sub RenameAliasToAttributeAndEndingWithAttributeAttributeWithResolvedConflict(host As RenameTestHost)
Using result = RenameEngineResult.Create(_outputHelper,
<Workspace>
<Project Language="C#" CommonReferences="true">
Expand Down Expand Up @@ -717,7 +717,7 @@ class Program
<Theory>
<WorkItem(529531, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/529531")>
<CombinatorialData, Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub RenameAliasToNullableWithResolvedConflict(host As TestHost)
Public Sub RenameAliasToNullableWithResolvedConflict(host As RenameTestHost)
Using result = RenameEngineResult.Create(_outputHelper,
<Workspace>
<Project Language="C#" CommonReferences="true">
Expand Down
Loading

0 comments on commit 714fdfa

Please sign in to comment.