Skip to content

Commit

Permalink
Fix test case source name
Browse files Browse the repository at this point in the history
  • Loading branch information
andreise committed Jan 11, 2024
1 parent 8c124a6 commit 43ad5b8
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,14 @@ public void CanCastArray_ValueType_TypeCompatible_ExpectTrue(FlatArray<byte> sou
};

[Theory]
[MemberData(nameof(CanCastArray_ValueType_TypeIncompatible_ExpectTrue_CaseSource))]
[MemberData(nameof(CanCastArray_ValueType_TypeIncompatible_ExpectFalse_CaseSource))]
public void CanCastArray_ValueType_TypeIncompatible_ExpectFalse(FlatArray<byte> source)
{
var actual = source.CanCastArray<ushort>();
Assert.False(actual);
}

public static TheoryData<FlatArray<byte>> CanCastArray_ValueType_TypeIncompatible_ExpectTrue_CaseSource => new()
public static TheoryData<FlatArray<byte>> CanCastArray_ValueType_TypeIncompatible_ExpectFalse_CaseSource => new()
{
{
default
Expand Down Expand Up @@ -121,14 +121,14 @@ public void CanCastArray_RefType_TypeCompatible_ExpectTrue(FlatArray<string> sou
};

[Theory]
[MemberData(nameof(CanCastArray_RefType_TypeIncompatible_ExpectTrue_CaseSource))]
[MemberData(nameof(CanCastArray_RefType_TypeIncompatible_ExpectFalse_CaseSource))]
public void CanCastArray_RefType_TypeIncompatible_ExpectFalse(FlatArray<object> source)
{
var actual = source.CanCastArray<string>();
Assert.False(actual);
}

public static TheoryData<FlatArray<object>> CanCastArray_RefType_TypeIncompatible_ExpectTrue_CaseSource => new()
public static TheoryData<FlatArray<object>> CanCastArray_RefType_TypeIncompatible_ExpectFalse_CaseSource => new()
{
{
default
Expand Down

0 comments on commit 43ad5b8

Please sign in to comment.