Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/linker.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptInitializerData.cs')
-rw-r--r--test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptInitializerData.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptInitializerData.cs b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptInitializerData.cs
index b2c5647f0..6c448617c 100644
--- a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptInitializerData.cs
+++ b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptInitializerData.cs
@@ -13,7 +13,7 @@ namespace Mono.Linker.Tests.Cases.Expectations.Assertions
public KeptInitializerData (int occurrenceIndexInBody)
{
if (occurrenceIndexInBody < 0)
- throw new ArgumentException ();
+ throw new ArgumentOutOfRangeException (nameof (occurrenceIndexInBody));
}
}
} \ No newline at end of file