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));
        }