We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca551f0 commit 832abe0Copy full SHA for 832abe0
test/UnitTest/Extensions/ObjectExtensionsTest.cs
@@ -311,6 +311,10 @@ public void CreateInstance_Ok()
311
var mi = typeof(ObjectExtensions).GetMethod("EnsureInitialized", System.Reflection.BindingFlags.Static | System.Reflection.BindingFlags.NonPublic);
312
Assert.NotNull(mi);
313
mi.Invoke(null, [null, false]);
314
+
315
+ var instance = ObjectExtensions.CreateInstance<MockComplexObject>(false);
316
+ Assert.NotNull(instance);
317
+ Assert.Null(instance.Test);
318
}
319
320
private class MockComplexObject
0 commit comments