[Mono-bugs] [Bug 55414][Nor] New - CBool does not work as expected under VB.NET

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 10 Mar 2004 08:00:37 -0500 (EST)


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 joergr@voelcker.com.

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

--- shadow/55414	2004-03-10 08:00:37.000000000 -0500
+++ shadow/55414.tmp.18305	2004-03-10 08:00:37.000000000 -0500
@@ -0,0 +1,72 @@
+Bug#: 55414
+Product: Mono: Class Libraries
+Version: unspecified
+OS: Suse 8.2
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: System
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: JoergR@voelcker.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: CBool does not work as expected under VB.NET
+
+Description of Problem:
+CBool does not work as expected.
+
+Steps to reproduce the problem:
+1. Compile attached sample using VBC.exe under MS.NET
+2. Run it on Mono
+
+Actual Results:
+Nothing -> False
+True -> True
+False -> False
+TRUE -> True
+FALSE -> False
+1 -> [System.FormatException] Value is not equivalent to either TrueString
+or FalseString
+0 -> [System.FormatException] Value is not equivalent to either TrueString
+or FalseString
+1 -> True
+0 -> False
+1.5 -> [System.FormatException] Value is not equivalent to either
+TrueString or FalseString
+1,5 -> [System.FormatException] Value is not equivalent to either
+TrueString or FalseString
+1ABC -> [System.FormatException] Value is not equivalent to either
+TrueString or FalseString
+1ZYX -> [System.FormatException] Value is not equivalent to either
+TrueString or FalseString
+Test -> [System.FormatException] Value is not equivalent to either
+TrueString or FalseString
+
+
+Expected Results:
+Nothing -> False
+True -> True
+False -> False
+TRUE -> True
+FALSE -> False
+1 -> True
+0 -> False
+1 -> True
+0 -> False
+1.5 -> True
+1,5 -> True
+1ABC -> [System.InvalidCastException] Cast from string "1ABC" to type
+'Boolean' is not valid.
+1ZYX -> [System.InvalidCastException] Cast from string "1ZYX" to type
+'Boolean' is not valid.
+Test -> [System.InvalidCastException] Cast from string "Test" to type
+'Boolean' is not valid.
+
+How often does this happen? 
+Always.
+
+Additional Information: