From f17aab8b747898ccd6d18c8253161b8deb304e91 Mon Sep 17 00:00:00 2001 From: Cyrus Najmabadi Date: Wed, 16 Aug 2023 09:51:35 -0700 Subject: [PATCH] rename --- .../UseCollectionExpressionForEmptyTests.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/Analyzers/CSharp/Tests/UseCollectionExpression/UseCollectionExpressionForEmptyTests.cs b/src/Analyzers/CSharp/Tests/UseCollectionExpression/UseCollectionExpressionForEmptyTests.cs index 3a3fe0d9c2d74..a93e3f5964913 100644 --- a/src/Analyzers/CSharp/Tests/UseCollectionExpression/UseCollectionExpressionForEmptyTests.cs +++ b/src/Analyzers/CSharp/Tests/UseCollectionExpression/UseCollectionExpressionForEmptyTests.cs @@ -783,7 +783,7 @@ public void Add(T x) { } [Fact, WorkItem("https://github.com/dotnet/roslyn/issues/69507")] public async Task ForValueTypeWithCapacityConstructor() { - var collectionType = """ + var collectionDefinition = """ struct V : IEnumerable { @@ -812,7 +812,7 @@ void M() V v = V.[|Empty|]; } } - """ + collectionType, + """ + collectionDefinition, FixedCode = """ using System; using System.Collections; @@ -825,7 +825,7 @@ void M() V v = []; } } - """ + collectionType, + """ + collectionDefinition, LanguageVersion = LanguageVersion.CSharp12, ReferenceAssemblies = ReferenceAssemblies.Net.Net80, }.RunAsync(); @@ -834,7 +834,7 @@ void M() [Fact, WorkItem("https://github.com/dotnet/roslyn/issues/69507")] public async Task NotForValueTypeWithInvalidCapacityConstructor() { - var collectionType = """ + var collectionDefinition = """ struct V : IEnumerable { @@ -863,7 +863,7 @@ void M() V v = V.Empty; } } - """ + collectionType, + """ + collectionDefinition, LanguageVersion = LanguageVersion.CSharp12, ReferenceAssemblies = ReferenceAssemblies.Net.Net80, }.RunAsync(); @@ -872,7 +872,7 @@ void M() [Fact, WorkItem("https://github.com/dotnet/roslyn/issues/69507")] public async Task ForValueTypeWithInvalidCapacityButValidEmptyConstructor() { - var collectionType = """ + var collectionDefinition = """ struct V : IEnumerable { @@ -902,7 +902,7 @@ void M() V v = V.[|Empty|]; } } - """ + collectionType, + """ + collectionDefinition, FixedCode = """ using System; using System.Collections; @@ -915,7 +915,7 @@ void M() V v = []; } } - """ + collectionType, + """ + collectionDefinition, LanguageVersion = LanguageVersion.CSharp12, ReferenceAssemblies = ReferenceAssemblies.Net.Net80, }.RunAsync();