Rename CreateInstanceT_StructWithoutDefaultConstructor_ThrowsMissingMethodException...
authorEric Erhardt <eric.erhardt@microsoft.com>
Wed, 31 Mar 2021 16:13:49 +0000 (11:13 -0500)
committerGitHub <noreply@github.com>
Wed, 31 Mar 2021 16:13:49 +0000 (11:13 -0500)
This doesn't throw an exception, so the test shouldn't be named "ThrowsMissingMethodException"

src/libraries/System.Runtime/tests/System/ActivatorTests.Generic.cs

index 2ba5c52..1593cd0 100644 (file)
@@ -53,7 +53,7 @@ namespace System.Tests
             Assert.Throws<MissingMethodException>(() => Activator.CreateInstance<StructWithPrivateDefaultConstructor>());
 
         [Fact]
-        public void CreateInstanceT_StructWithoutDefaultConstructor_ThrowsMissingMethodException() =>
+        public void CreateInstanceT_StructWithoutDefaultConstructor_InvokesConstructor() =>
             Activator.CreateInstance<StructWithoutDefaultConstructor>();
 
         [Fact]