remove NotWorking
[mcs.git] / tests / test-632.cs
blob22a5cbdbbbaef6f280ba7394ab859d3e2a0f5f0f
1 using System;
2 class Bug379822 {
3 static void Assert (bool expected, bool value)
5 if (value != expected)
6 throw new Exception ("unexpected value");
9 static void TestAnd (bool var)
11 Assert (false, false && var);
12 Assert (false, var && false);
13 Assert (false, false & var);
14 Assert (false, var & false);
16 Assert (var, true && var);
17 Assert (var, var && true);
18 Assert (var, true & var);
19 Assert (var, var & true);
22 static void TestOr (bool var)
24 Assert (var, false || var);
25 Assert (var, var || false);
26 Assert (var, false | var);
27 Assert (var, var | false);
29 Assert (true, true || var);
30 Assert (true, var || true);
31 Assert (true, true | var);
32 Assert (true, var | true);
35 static void Test (bool var)
37 TestAnd (var);
38 TestOr (var);
41 static void Main ()
43 Test (false);
44 Test (true);