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 0df7e28 commit f762aa5Copy full SHA for f762aa5
1 file changed
test/UnitTest/Extensions/ObjectExtensionsTest.cs
@@ -303,6 +303,19 @@ public void IsStatic_Ok()
303
Assert.True(pi.IsStatic());
304
}
305
306
+ [Fact]
307
+ public void CreateInstanceWithCascade_Ok()
308
+ {
309
+ var exception = Assert.ThrowsAny<Exception>(() => ObjectExtensions.CreateInstanceWithCascade<MockComplexObject>(true));
310
+ }
311
+
312
+ private class MockComplexObject
313
314
+ public Foo? Foo { get; set; }
315
316
+ public (string Name, int Count)[]? Test { get; set; }
317
318
319
private class MockStatic
320
{
321
private static int _test;
0 commit comments