public void TestBitwiseMax_m999_m1000() { var t = new Twiddle(); int a = -999; int b = -1000; int expected = Math.Max(a, b); int actual = t.BitwiseMax(a, b); Assert.AreEqual(expected, actual); }
public void TestBitwiseMax_2_1() { var t = new Twiddle(); int a = 2; int b = 1; int expected = Math.Max(a, b); int actual = t.BitwiseMax(a, b); Assert.AreEqual(expected, actual); }
public void TestBitwiseMax_Maxval_0() { var t = new Twiddle(); int a = int.MaxValue; int b = 0; int expected = Math.Max(a, b); int actual = t.BitwiseMax(a, b); Assert.AreEqual(expected, actual); }