Skip to content

Commit

Permalink
rename List to Array
Browse files Browse the repository at this point in the history
  • Loading branch information
alec1o committed May 25, 2024
1 parent 2ef1572 commit 5ad798a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/primitive/ReadAndWrite.cs
Original file line number Diff line number Diff line change
Expand Up @@ -566,15 +566,15 @@ public class ListFromClass

public struct ArrayFromStruct2
{
public int[] List { get; set; }
public int[] Array { get; set; }
}

[Fact]
public void TestArrayFromStruct2()
{
var real = new ArrayFromStruct2
{
List = new List<int>
Array = new List<int>
{
10,
20,
Expand All @@ -589,10 +589,10 @@ public void TestArrayFromStruct2()
var clone = p.Get.Struct<ArrayFromStruct2>();

Assert.True(p.IsValid);
Assert.Equal(real.List, clone.List);
for (int i = 0; i < real.List.Length; i++)
Assert.Equal(real.Array, clone.Array);
for (int i = 0; i < real.Array.Length; i++)
{
Assert.Equal(real.List[i], clone.List[i]);
Assert.Equal(real.Array[i], clone.Array[i]);
}

Terminate(ref p);
Expand Down

0 comments on commit 5ad798a

Please sign in to comment.