Beispiel #1
0
        public void EnumerateDisplaySettings_FirstDevice()
        {
            var device   = GdiMethods.EnumerateDisplayDevices(null).First();
            var settings = GdiMethods.EnumerateDisplaySettings(device.DeviceName);

            settings.Should().NotBeEmpty();
        }
Beispiel #2
0
        public void EnumerateDisplaySettings_FirstDevice_CurrentMode()
        {
            var device   = GdiMethods.EnumerateDisplayDevices(null).First();
            var settings = GdiMethods.EnumerateDisplaySettings(device.DeviceName, GdiDefines.ENUM_CURRENT_SETTINGS).ToArray();

            settings.Length.Should().Be(1);
        }
Beispiel #3
0
        public void EnumerateDisplaySettings_Null()
        {
            var settings = GdiMethods.EnumerateDisplaySettings(null).ToArray();

            settings.Should().NotBeEmpty();
        }