Fixed HttpWebRequestTest to compile with mobile NUnit.
[mono.git] / mcs / class / System / Test / System.Net / HttpWebRequestTest.cs
index 1cc131fd8fda8e60e9cdcd7747a7e5257ea68f7e..a44034f267578f4d21eb487ce042c5230fbbcebf 100644 (file)
@@ -2333,7 +2333,7 @@ namespace MonoTests.System.Net
                                        byte[] readBuffer = new byte[int.MaxValue - near2GBStartPosition];
                                        Assert.AreEqual (webResponseStream.Read (readBuffer, 0, readBuffer.Length), readBuffer.Length, "#3");
                                        readyGetLastPortionEvent.Set ();
-                                       Assert.Greater (webResponseStream.Read (readBuffer, 0, readBuffer.Length), 0, "#4");
+                                       Assert.IsTrue (webResponseStream.Read (readBuffer, 0, readBuffer.Length) > 0);
                                        readyGetLastPortionEvent.Set ();
                                        
                                        webResponse.Close();