System.IO.Tests.FileStream_ctor_sfh_fa.InvalidHandleThrows C# (CSharp) Méthode

InvalidHandleThrows() private méthode

private InvalidHandleThrows ( ) : void
Résultat void
        public void InvalidHandleThrows()
        {
            Assert.Throws<ArgumentException>("handle", () => CreateFileStream(new SafeFileHandle(new IntPtr(-1), true), FileAccess.Read));
        }