예제 #1
0
        public async Task TestOptions()
        {
            test.Request.ProtocolMethod = HttpProtocolMethod.Options;
            await new HttpHeaderSpecialAction().ProgressTask(test.Task).ConfigureAwait(false);
            Assert.AreEqual(1, test.GetDataSources().Count);
            Assert.IsTrue(test.GetDataSources()[0] is HttpStringDataSource);
            var dataSource = (HttpStringDataSource)test.GetDataSources()[0];

            Assert.IsNotNull(dataSource.Data);
            Assert.IsTrue(dataSource.Data.Length > 0);
        }