public void CornerOrientationTests() { int num; OneLookLLCube cube = new OneLookLLCube(); for (int k = 0; k < 480; k += 24) { cube.Solve(); cube.SetUpPosition(k); cube.RandomUMove(); num = cube.GetCornerOrientationNum(); Assert.AreEqual(k / 72, num, "failed on position " + k); } cube.Solve(); cube.HOrientation(); num = cube.GetCornerOrientationNum(); Assert.AreEqual(6, num, "failed on h orientation"); cube.U(); num = cube.GetCornerOrientationNum(); Assert.AreEqual(6, num, "failed on h orientation"); cube.Solve(); num = cube.GetCornerOrientationNum(); Assert.AreEqual(7, num, "failed with corners oriented"); }