Merge pull request #1861 from saper/home-override
[mono-project.git] / mcs / tests / test-632.cs
blob450ff4438885b546492b95afa2e9c697c0403f5b
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 public static void Main ()
43 Test (false);
44 Test (true);