diff options
Diffstat (limited to 'mcs/class/System.Net.Http/Test/System.Net.Http/StreamContentTest.cs')
-rw-r--r-- | mcs/class/System.Net.Http/Test/System.Net.Http/StreamContentTest.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mcs/class/System.Net.Http/Test/System.Net.Http/StreamContentTest.cs b/mcs/class/System.Net.Http/Test/System.Net.Http/StreamContentTest.cs index b4a541afab2..edd4b839c16 100644 --- a/mcs/class/System.Net.Http/Test/System.Net.Http/StreamContentTest.cs +++ b/mcs/class/System.Net.Http/Test/System.Net.Http/StreamContentTest.cs @@ -331,7 +331,7 @@ namespace MonoTests.System.Net.Http Assert.IsTrue (sc.LoadIntoBufferAsync (50).Wait (200)); Assert.Fail ("#1"); } catch (AggregateException e) { - Assert.IsInstanceOfType (typeof (HttpRequestException), e.InnerException, "#2"); + Assert.IsTrue (e.InnerException is HttpRequestException, "#2"); } } |