Skip to content

Commit

Permalink
Improve naming of tests verifying safe context of setters
Browse files Browse the repository at this point in the history
  • Loading branch information
jjonescz committed Apr 30, 2024
1 parent 81ef3aa commit 2fd98b5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Compilers/CSharp/Test/Semantic/Semantics/UnsafeTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1662,7 +1662,7 @@ System.Collections.Generic.IEnumerable<int> this[int x]
}

[Theory, CombinatorialData]
public void UnsafeContext_Indexer_Iterator_Body_CSharp13_Unsafe(bool unsafeClass, bool unsafeIndexer)
public void UnsafeContext_Indexer_Iterator_Body_CSharp13_UnsafeSetter(bool unsafeClass, bool unsafeIndexer)
{
if (!unsafeClass && !unsafeIndexer)
{
Expand Down Expand Up @@ -1692,7 +1692,7 @@ public void UnsafeContext_Indexer_Iterator_Body_CSharp13_Unsafe(bool unsafeClass
}

[Fact]
public void UnsafeContext_Indexer_Iterator_Body_CSharp13_Safe()
public void UnsafeContext_Indexer_Iterator_Body_CSharp13_SafeSetter()
{
var code = """
class C
Expand Down Expand Up @@ -1933,7 +1933,7 @@ System.Collections.Generic.IEnumerable<int> P
}

[Theory, CombinatorialData]
public void UnsafeContext_Property_Iterator_Body_CSharp13_Unsafe(bool unsafeClass, bool unsafeProperty)
public void UnsafeContext_Property_Iterator_Body_CSharp13_UnsafeSetter(bool unsafeClass, bool unsafeProperty)
{
if (!unsafeClass && !unsafeProperty)
{
Expand Down Expand Up @@ -1963,7 +1963,7 @@ public void UnsafeContext_Property_Iterator_Body_CSharp13_Unsafe(bool unsafeClas
}

[Fact]
public void UnsafeContext_Property_Iterator_Body_CSharp13_Safe()
public void UnsafeContext_Property_Iterator_Body_CSharp13_SafeSetter()
{
var code = """
class C
Expand Down

0 comments on commit 2fd98b5

Please sign in to comment.