Skip to content

Commit

Permalink
Fixing tests following cf76379
Browse files Browse the repository at this point in the history
  • Loading branch information
lookbusy1344 committed Oct 24, 2023
1 parent 16085a9 commit 4edc010
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions RecordValueAnalyser.Test/UnitTestsClasses.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public record class A(int I, string S, DateTime Dt, StructA Sa);

var expected = VerifyCS.Diagnostic("JSV01")
.WithSpan(8, 53, 8, 63)
.WithArguments("StructA Sa (int[])");
.WithArguments("StructA Sa (field int[])");

await VerifyCS.VerifyAnalyzerAsync(test, expected);
}
Expand Down Expand Up @@ -120,7 +120,7 @@ public record class A(int I, string S, DateTime Dt, ClassA Ca);

var expected = VerifyCS.Diagnostic("JSV01")
.WithSpan(10, 53, 10, 62)
.WithArguments("ClassA Ca (int[])");
.WithArguments("ClassA Ca (field int[])");

await VerifyCS.VerifyAnalyzerAsync(test, expected);
}
Expand Down Expand Up @@ -193,7 +193,7 @@ public async Task RecordWithTupleFail()

var expected = VerifyCS.Diagnostic("JSV01")
.WithSpan(6, 36, 6, 60)
.WithArguments("(int a, int[] b) TupFail (int[])");
.WithArguments("(int a, int[] b) TupFail (field int[])");

await VerifyCS.VerifyAnalyzerAsync(test, expected);
}
Expand Down Expand Up @@ -229,7 +229,7 @@ public record class Tester(int I, StructDynamic Dy);

var expected = VerifyCS.Diagnostic("JSV01")
.WithSpan(8, 35, 8, 51)
.WithArguments("StructDynamic Dy (dynamic)");
.WithArguments("StructDynamic Dy (field dynamic)");

await VerifyCS.VerifyAnalyzerAsync(test, expected);
}
Expand Down Expand Up @@ -263,7 +263,7 @@ public record class Tester(int I, StructA Sa);

var expected = VerifyCS.Diagnostic()
.WithSpan(9, 35, 9, 45)
.WithArguments("StructA Sa (StructB)");
.WithArguments("StructA Sa (field StructB)");

await VerifyCS.VerifyAnalyzerAsync(test, expected);
}
Expand Down
10 changes: 5 additions & 5 deletions RecordValueAnalyser.Test/UnitTestsStructs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public record struct A(int I, string S, DateTime Dt, StructA Sa);

var expected = VerifyCS.Diagnostic("JSV01")
.WithSpan(8, 54, 8, 64)
.WithArguments("StructA Sa (int[])");
.WithArguments("StructA Sa (field int[])");

await VerifyCS.VerifyAnalyzerAsync(test, expected);
}
Expand Down Expand Up @@ -120,7 +120,7 @@ public record struct A(int I, string S, DateTime Dt, ClassA Ca);

var expected = VerifyCS.Diagnostic("JSV01")
.WithSpan(10, 54, 10, 63)
.WithArguments("ClassA Ca (int[])");
.WithArguments("ClassA Ca (field int[])");

await VerifyCS.VerifyAnalyzerAsync(test, expected);
}
Expand Down Expand Up @@ -193,7 +193,7 @@ public async Task RecordWithTupleFail()

var expected = VerifyCS.Diagnostic("JSV01")
.WithSpan(6, 37, 6, 61)
.WithArguments("(int a, int[] b) TupFail (int[])");
.WithArguments("(int a, int[] b) TupFail (field int[])");

await VerifyCS.VerifyAnalyzerAsync(test, expected);
}
Expand Down Expand Up @@ -229,7 +229,7 @@ public record struct Tester(int I, StructDynamic Dy);

var expected = VerifyCS.Diagnostic("JSV01")
.WithSpan(8, 36, 8, 52)
.WithArguments("StructDynamic Dy (dynamic)");
.WithArguments("StructDynamic Dy (field dynamic)");

await VerifyCS.VerifyAnalyzerAsync(test, expected);
}
Expand Down Expand Up @@ -263,7 +263,7 @@ public record struct Tester(int I, StructA Sa);

var expected = VerifyCS.Diagnostic()
.WithSpan(9, 36, 9, 46)
.WithArguments("StructA Sa (StructB)");
.WithArguments("StructA Sa (field StructB)");

await VerifyCS.VerifyAnalyzerAsync(test, expected);
}
Expand Down

0 comments on commit 4edc010

Please sign in to comment.