Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
CyrusNajmabadi committed Aug 16, 2023
1 parent 7ed2977 commit f17aab8
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<T> : IEnumerable<T>
{
Expand Down Expand Up @@ -812,7 +812,7 @@ void M()
V<int> v = V<int>.[|Empty|];
}
}
""" + collectionType,
""" + collectionDefinition,
FixedCode = """
using System;
using System.Collections;
Expand All @@ -825,7 +825,7 @@ void M()
V<int> v = [];
}
}
""" + collectionType,
""" + collectionDefinition,
LanguageVersion = LanguageVersion.CSharp12,
ReferenceAssemblies = ReferenceAssemblies.Net.Net80,
}.RunAsync();
Expand All @@ -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<T> : IEnumerable<T>
{
Expand Down Expand Up @@ -863,7 +863,7 @@ void M()
V<int> v = V<int>.Empty;
}
}
""" + collectionType,
""" + collectionDefinition,
LanguageVersion = LanguageVersion.CSharp12,
ReferenceAssemblies = ReferenceAssemblies.Net.Net80,
}.RunAsync();
Expand All @@ -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<T> : IEnumerable<T>
{
Expand Down Expand Up @@ -902,7 +902,7 @@ void M()
V<int> v = V<int>.[|Empty|];
}
}
""" + collectionType,
""" + collectionDefinition,
FixedCode = """
using System;
using System.Collections;
Expand All @@ -915,7 +915,7 @@ void M()
V<int> v = [];
}
}
""" + collectionType,
""" + collectionDefinition,
LanguageVersion = LanguageVersion.CSharp12,
ReferenceAssemblies = ReferenceAssemblies.Net.Net80,
}.RunAsync();
Expand Down

0 comments on commit f17aab8

Please sign in to comment.