[Mono-bugs] [Bug 58874][Nor] New - True != True

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sun, 23 May 2004 12:43:00 -0400 (EDT)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by sebastien@ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=58874

--- shadow/58874	2004-05-23 12:43:00.000000000 -0400
+++ shadow/58874.tmp.24273	2004-05-23 12:43:00.000000000 -0400
@@ -0,0 +1,41 @@
+Bug#: 58874
+Product: Mono: Class Libraries
+Version: unspecified
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: sebastien@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: True != True
+
+Description of Problem:
+True can be different from true.
+
+Steps to reproduce the problem:
+1. Compile this code (or see BitConverterTest.cs)
+
+byte[] array = new byte [2] { 0x02, 0x00 };
+Assert ("True", BitConverter.ToBoolean (array, 0));
+AssertEquals ("True==True", true, BitConverter.ToBoolean (array, 0));
+Assert ("False", !BitConverter.ToBoolean (array, 1));
+
+
+Actual Results:
+The first Assert is correct, while AsserEquals fails.
+
+Expected Results:
+The three tests shouldn't fail.
+
+How often does this happen? 
+Always
+
+Additional Information:
+Ok on MS runtime.