For Condition, "yes", "no", "on" and "off" are also treated as valid boolean...
[mono.git] / mcs / class / Microsoft.Build / Test / Microsoft.Build.Internal / ExpressionParserTest.cs
index 0f55735aec4cb76af498e7160d50d00eeb05c5d9..7654538a1a4c64ab8c2e19fb6e9dc5e6a9e09a13 100644 (file)
@@ -69,6 +69,10 @@ namespace MonoTests.Microsoft.Build.Internal
                                "$([System.DateTime]::Now)", // it is DateTime
                                "$([System.String]::Format('Tr'))$([System.String]::Format('ue'))", // only one expression is accepted
                                "$([System.String]::Format(null))", // causing ANE, wrapped by InvalidProjectFileException
+                               "yep",
+                               "nope",
+                               "ONN",
+                               "OFFF",
                        };
                        string [] valid = {
                                "'%24' == 0",
@@ -88,6 +92,10 @@ namespace MonoTests.Microsoft.Build.Internal
                                "(True or True or False)",
                                "True and False",
                                "(True) and (False)",
+                               "yes",
+                               "nO",
+                               "oN",
+                               "oFf",
                        };
                        string [] depends = {
                                // valid only if evaluated to boolean