System.Xml.Tests.AsyncReaderLateInitTests.ReadAfterInitializationWithUriOnAsyncReaderTrows C# (CSharp) Method

ReadAfterInitializationWithUriOnAsyncReaderTrows() private method

private ReadAfterInitializationWithUriOnAsyncReaderTrows ( ) : void
return void
        public static void ReadAfterInitializationWithUriOnAsyncReaderTrows()
        {
            using (XmlReader reader = XmlReader.Create("http://test.test/test.html", new XmlReaderSettings() { Async = true }))
            {
                Assert.Throws<XmlException>(() => reader.Read());
            }
        }
    }