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/runtime/System TestGuid.cs,1.2,


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnetlib/tests/runtime/System TestGuid.cs,1.2,1.3
Date: Fri, 29 Nov 2002 00:18:54 -0500

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

Modified Files:
        TestGuid.cs 
Log Message:


Semantic errors under csc.


Index: TestGuid.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/tests/runtime/System/TestGuid.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** TestGuid.cs 29 Nov 2002 03:42:03 -0000      1.2
--- TestGuid.cs 29 Nov 2002 05:18:51 -0000      1.3
***************
*** 68,78 ****
                        {
                                // Tests that are expected to succeed.
!                               Guid expected = new Guid((int)0xc0093632,
!                                                                            
(short)0xb44c,
!                                                                            
(short)0x4cf7,
!                                                                            
(byte)0xa2, (byte)0x79,
!                                                                            
(byte)0xd8, (byte)0x2f,
!                                                                            
(byte)0xe8, (byte)0xa8,
!                                                                            
(byte)0x89, (byte)0x0d);
                                Guid guid = new Guid(testGuid1);
                                AssertEquals("guid1", expected, guid);
--- 68,82 ----
                        {
                                // Tests that are expected to succeed.
!                               Guid expected = new 
Guid(unchecked((int)0xc0093632),
!                                                                            
unchecked((short)0xb44c),
!                                                                            
unchecked((short)0x4cf7),
!                                                                            
unchecked((byte)0xa2),
!                                                                               
 unchecked((byte)0x79),
!                                                                            
unchecked((byte)0xd8),
!                                                                               
 unchecked((byte)0x2f),
!                                                                            
unchecked((byte)0xe8),
!                                                                               
 unchecked((byte)0xa8),
!                                                                            
unchecked((byte)0x89),
!                                                                               
 unchecked((byte)0x0d));
                                Guid guid = new Guid(testGuid1);
                                AssertEquals("guid1", expected, guid);
***************
*** 127,137 ****
                        {
                                // Tests that are expected to succeed.
!                               Guid guid = new Guid((int)0xc0093632,
!                                                                    
(short)0xb44c,
!                                                                    
(short)0x4cf7,
!                                                                    
(byte)0xa2, (byte)0x79,
!                                                                    
(byte)0xd8, (byte)0x2f,
!                                                                    
(byte)0xe8, (byte)0xa8,
!                                                                    
(byte)0x89, (byte)0x0d);
                                AssertEquals("guid1", testGuid1, 
guid.ToString("B"));
                                AssertEquals("guid2", testGuid7, 
guid.ToString("d"));
--- 131,145 ----
                        {
                                // Tests that are expected to succeed.
!                               Guid guid = new Guid(unchecked((int)0xc0093632),
!                                                                    
unchecked((short)0xb44c),
!                                                                    
unchecked((short)0x4cf7),
!                                                                    
unchecked((byte)0xa2),
!                                                                        
unchecked((byte)0x79),
!                                                                    
unchecked((byte)0xd8),
!                                                                        
unchecked((byte)0x2f),
!                                                                    
unchecked((byte)0xe8),
!                                                                        
unchecked((byte)0xa8),
!                                                                    
unchecked((byte)0x89),
!                                                                        
unchecked((byte)0x0d));
                                AssertEquals("guid1", testGuid1, 
guid.ToString("B"));
                                AssertEquals("guid2", testGuid7, 
guid.ToString("d"));
***************
*** 155,172 ****
        public void TestGuidEquals()
                        {
!                               Guid guid1 = new Guid((int)0xc0093632,
!                                                                     
(short)0xb44c,
!                                                                     
(short)0x4cf7,
!                                                                     
(byte)0xa2, (byte)0x79,
!                                                                     
(byte)0xd8, (byte)0x2f,
!                                                                     
(byte)0xe8, (byte)0xa8,
!                                                                     
(byte)0x89, (byte)0x0d);
!                               Guid guid2 = new Guid((int)0xc0093632,
!                                                                     
(short)0xb44e,
!                                                                     
(short)0x4cf7,
!                                                                     
(byte)0xa2, (byte)0x79,
!                                                                     
(byte)0xd8, (byte)0x2f,
!                                                                     
(byte)0xe8, (byte)0xa8,
!                                                                     
(byte)0x89, (byte)0x0d);
                                Assert(!guid1.Equals(null));
                                Assert(guid1.Equals(guid1));
--- 163,188 ----
        public void TestGuidEquals()
                        {
!                               Guid guid1 = new 
Guid(unchecked((int)0xc0093632),
!                                                                     
unchecked((short)0xb44c),
!                                                                     
unchecked((short)0x4cf7),
!                                                                     
unchecked((byte)0xa2),
!                                                                         
unchecked((byte)0x79),
!                                                                     
unchecked((byte)0xd8),
!                                                                         
unchecked((byte)0x2f),
!                                                                     
unchecked((byte)0xe8),
!                                                                         
unchecked((byte)0xa8),
!                                                                     
unchecked((byte)0x89),
!                                                                         
unchecked((byte)0x0d));
!                               Guid guid2 = new 
Guid(unchecked((int)0xc0093632),
!                                                                     
unchecked((short)0xb44e),
!                                                                     
unchecked((short)0x4cf7),
!                                                                     
unchecked((byte)0xa2),
!                                                                         
unchecked((byte)0x79),
!                                                                     
unchecked((byte)0xd8),
!                                                                         
unchecked((byte)0x2f),
!                                                                     
unchecked((byte)0xe8),
!                                                                         
unchecked((byte)0xa8),
!                                                                     
unchecked((byte)0x89),
!                                                                         
unchecked((byte)0x0d));
                                Assert(!guid1.Equals(null));
                                Assert(guid1.Equals(guid1));





reply via email to

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