76 references to AssertParseEvaluate
Microsoft.Build.Engine.UnitTests (76)
ExpressionTree_Tests.cs (76)
32AssertParseEvaluate(p, "true", expander, true); 33AssertParseEvaluate(p, "on", expander, true); 34AssertParseEvaluate(p, "yes", expander, true); 35AssertParseEvaluate(p, "false", expander, false); 36AssertParseEvaluate(p, "off", expander, false); 37AssertParseEvaluate(p, "no", expander, false); 48AssertParseEvaluate(p, "true == on", expander, true); 49AssertParseEvaluate(p, "TrUe == On", expander, true); 50AssertParseEvaluate(p, "true != false", expander, true); 51AssertParseEvaluate(p, "true==!false", expander, true); 52AssertParseEvaluate(p, "4 != 5", expander, true); 53AssertParseEvaluate(p, "-4 < 4", expander, true); 54AssertParseEvaluate(p, "5 == +5", expander, true); 55AssertParseEvaluate(p, "4 == 4.0", expander, true); 56AssertParseEvaluate(p, "4 == 4.0", expander, true); 57AssertParseEvaluate(p, ".45 == '.45'", expander, true); 58AssertParseEvaluate(p, "4 == '4'", expander, true); 59AssertParseEvaluate(p, "'0' == '4'", expander, false); 60AssertParseEvaluate(p, "4 == 0x0004", expander, true); 61AssertParseEvaluate(p, "0.0 == 0", expander, true); 62AssertParseEvaluate(p, "simplestring == 'simplestring'", expander, true); 73AssertParseEvaluate(p, "1234 < 1235", expander, true); 74AssertParseEvaluate(p, "1234 <= 1235", expander, true); 75AssertParseEvaluate(p, "1235 < 1235", expander, false); 76AssertParseEvaluate(p, "1234 <= 1234", expander, true); 77AssertParseEvaluate(p, "1235 <= 1234", expander, false); 78AssertParseEvaluate(p, "1235 > 1234", expander, true); 79AssertParseEvaluate(p, "1235 >= 1235", expander, true); 80AssertParseEvaluate(p, "1235 >= 1234", expander, true); 81AssertParseEvaluate(p, "0.0==0", expander, true); 92AssertParseEvaluate(p, "true == on and 1234 < 1235", expander, true); 129AssertParseEvaluate(p, "Exists('c:\\IShouldntExist.sys')", expander, false); 153AssertParseEvaluate(p, "$(foo)", expander, true); 154AssertParseEvaluate(p, "!$(foo)", expander, false); 156AssertParseEvaluate(p, "$(simple) == 'simplestring'", expander, true); 157AssertParseEvaluate(p, "'simplestring' == $(simple)", expander, true); 158AssertParseEvaluate(p, "'foo' != $(simple)", expander, true); 159AssertParseEvaluate(p, "'simplestring' == '$(simple)'", expander, true); 160AssertParseEvaluate(p, "$(simple) == simplestring", expander, true); 161AssertParseEvaluate(p, "$(x86) == x86", expander, true); 162AssertParseEvaluate(p, "$(x86)==x86", expander, true); 163AssertParseEvaluate(p, "x86==$(x86)", expander, true); 164AssertParseEvaluate(p, "$(c1) == $(c2)", expander, true); 165AssertParseEvaluate(p, "'$(c1)' == $(c2)", expander, true); 166AssertParseEvaluate(p, "$(c1) != $(simple)", expander, true); 167AssertParseEvaluate(p, "$(c1) == $(c2)", expander, true); 169AssertParseEvaluate(p, "$(one) == $(onepointzero)", expander, true); 170AssertParseEvaluate(p, "$(one) <= $(two)", expander, true); 171AssertParseEvaluate(p, "$(two) > $(onepointzero)", expander, true); 172AssertParseEvaluate(p, "$(one) != $(two)", expander, true); 173AssertParseEvaluate(p, "'$(no)'==false", expander, true); 192AssertParseEvaluate(p, "@(Compile) == 'foo.cs;bar.cs;baz.cs'", expander, true); 193AssertParseEvaluate(p, "@(Compile,' ') == 'foo.cs bar.cs baz.cs'", expander, true); 194AssertParseEvaluate(p, "@(Compile,'') == 'foo.csbar.csbaz.cs'", expander, true); 195AssertParseEvaluate(p, "@(Compile->'%(Filename)') == 'foo;bar;baz'", expander, true); 196AssertParseEvaluate(p, "@(Compile -> 'temp\\%(Filename).xml', ' ') == 'temp\\foo.xml temp\\bar.xml temp\\baz.xml'", expander, true); 197AssertParseEvaluate(p, "@(Compile->'', '') == ''", expander, true); 198AssertParseEvaluate(p, "@(Compile->'') == ';;'", expander, true); 199AssertParseEvaluate(p, "@(Compile->'%(Nonexistent)', '') == ''", expander, true); 200AssertParseEvaluate(p, "@(Compile->'%(Nonexistent)') == ';;'", expander, true); 201AssertParseEvaluate(p, "@(Boolean)", expander, true); 202AssertParseEvaluate(p, "@(Boolean) == true", expander, true); 203AssertParseEvaluate(p, "'@(Empty, ';')' == ''", expander, true); 235AssertParseEvaluate(p, "'simplestring: true foo.cs;bar.cs;baz.cs' == '$(simple): $(foo) @(compile)'", expander, true); 236AssertParseEvaluate(p, "'$(c1) $(c2)' == 'Another (complex) one. Another (complex) one.'", expander, true); 237AssertParseEvaluate(p, "'CONTAINS%27QUOTE%27' == '$(TestQuote)'", expander, true); 238AssertParseEvaluate(p, "'Here%27s Johnny!' == '$(AnotherTestQuote)'", expander, true); 239AssertParseEvaluate(p, "'Test the %40 replacement' == $(Atsign)", expander, true); 267AssertParseEvaluate(p, "(($(foo) != 'two' and $(bar)) and 5 >= 1) or $(one) == 1", expander, true); 268AssertParseEvaluate(p, "(($(foo) != 'twoo' or !$(bar)) and 5 >= 1) or $(two) == 1", expander, true); 269AssertParseEvaluate(p, "!((($(foo) != 'twoo' or !$(bar)) and 5 >= 1) or $(two) == 1)", expander, false); 317AssertParseEvaluate(p, "(($(foo) != 'two' and $(bar)) and 5 >= 1) or $(one) == 1", expander, true); 421AssertParseEvaluate(p, "!true", expander, false); 422AssertParseEvaluate(p, "!(true)", expander, false); 423AssertParseEvaluate(p, "!($(foo) <= 5)", expander, false); 424AssertParseEvaluate(p, "!($(foo) <= 5 and $(bar) >= 15)", expander, false);