public void CreateFromDisplayIdsTest() { TestRuntime.AssertSystemVersion(ApplePlatform.MacOSX, 12, 0); // we might not have more than one display, therefore we will use an array // with a single one, there is nothing in the docs that say that we cannot do that Assert.DoesNotThrow(() => { using var displayLink = CVDisplayLink.CreateFromDisplayIds(new [] { (uint)CGDisplay.MainDisplayID }); Assert.NotNull(displayLink, "Not null"); }, "Throws"); }