3 static void Assert (bool expected
, bool value)
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)
41 public static void Main ()