System.Tests.OperatingSystemTests.Ctor_InvalidArgs_Throws C# (CSharp) Метод

Ctor_InvalidArgs_Throws() приватный Метод

private Ctor_InvalidArgs_Throws ( ) : void
Результат void
        public static void Ctor_InvalidArgs_Throws()
        {
            Assert.Throws<ArgumentOutOfRangeException>("platform", () => new OperatingSystem((PlatformID)(-1), new Version(1, 2)));
            Assert.Throws<ArgumentOutOfRangeException>("platform", () => new OperatingSystem((PlatformID)42, new Version(1, 2)));
            Assert.Throws<ArgumentNullException>("version", () => new OperatingSystem(PlatformID.Unix, null));
        }