diff options
Diffstat (limited to 'test/ILLink.Tasks.Tests/ILLink.Tasks.Tests.cs')
-rw-r--r-- | test/ILLink.Tasks.Tests/ILLink.Tasks.Tests.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ILLink.Tasks.Tests/ILLink.Tasks.Tests.cs b/test/ILLink.Tasks.Tests/ILLink.Tasks.Tests.cs index 216dec205..e6aef3617 100644 --- a/test/ILLink.Tasks.Tests/ILLink.Tasks.Tests.cs +++ b/test/ILLink.Tasks.Tests/ILLink.Tasks.Tests.cs @@ -369,7 +369,7 @@ namespace ILLink.Tasks.Tests using (var driver = task.CreateDriver ()) { var actualWarnAsError = driver.Context.WarnAsError; var actualGeneralWarnAsError = driver.Context.GeneralWarnAsError; - Assert.Equal (warnAsError.Count () + warnNotAsError.Count (), actualWarnAsError.Count); + Assert.Equal (warnAsError.Length + warnNotAsError.Length, actualWarnAsError.Count); Assert.Equal (treatWarningsAsErrors, actualGeneralWarnAsError); if (warnAsError.Length > 0) { foreach (var warningCode in warnAsError) @@ -753,7 +753,7 @@ namespace ILLink.Tasks.Tests public void TestErrorHandling () { var task = new MockTask () { - RootAssemblyNames = new ITaskItem[0] + RootAssemblyNames = Array.Empty<ITaskItem> () }; task.BuildEngine = new MockBuildEngine (); Assert.False (task.Execute ()); |