System.Tests.OperatingSystemTests.Ctor_InvalidArgs_Throws C# (CSharp) Method

Ctor_InvalidArgs_Throws() private method

private Ctor_InvalidArgs_Throws ( ) : void
return 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));
        }