dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] CVS: pnetlib/tests/System TestWebHeaderCollection.


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnetlib/tests/System TestWebHeaderCollection.cs,1.1,1.2
Date: Mon, 02 Dec 2002 19:19:41 -0500

Update of /cvsroot/dotgnu-pnet/pnetlib/tests/System
In directory subversions:/tmp/cvs-serv3748/tests/System

Modified Files:
        TestWebHeaderCollection.cs 
Log Message:


Semantic errors shown up by csc.


Index: TestWebHeaderCollection.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/tests/System/TestWebHeaderCollection.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** TestWebHeaderCollection.cs  30 Nov 2002 17:12:41 -0000      1.1
--- TestWebHeaderCollection.cs  3 Dec 2002 00:19:39 -0000       1.2
***************
*** 23,26 ****
--- 23,27 ----
  
  using CSUnit;
+ using System;
  using System.Net;
  
***************
*** 103,109 ****
        {
                WebHeaderCollection whc = new WebHeaderCollection();
                try
                {
!                       string[] strArray1 = whc.GetValues(null);
                        Fail("GetValues: failed to throw exception for null 
argument");
                }
--- 104,111 ----
        {
                WebHeaderCollection whc = new WebHeaderCollection();
+               string[] strArray1;
                try
                {
!                       strArray1 = whc.GetValues(null);
                        Fail("GetValues: failed to throw exception for null 
argument");
                }
***************
*** 117,121 ****
                if (strArray[0] != "junk")
                        Fail("GetValues: returned incorrect data for 
'phony:junk'");
!               string[] strArray1 = whc.GetValues("more");
                if (strArray1[0] != "stuff")
                        Fail("GetValues: returned incorrect data for 
'more:stuff'");
--- 119,123 ----
                if (strArray[0] != "junk")
                        Fail("GetValues: returned incorrect data for 
'phony:junk'");
!               strArray1 = whc.GetValues("more");
                if (strArray1[0] != "stuff")
                        Fail("GetValues: returned incorrect data for 
'more:stuff'");





reply via email to

[Prev in Thread] Current Thread [Next in Thread]