public void Sample() { OneLookLLCube cube = new OneLookLLCube(); cube.Solve(); cube.SetUpPosition(3776); int posNum = cube.GetPosNum(); Assert.AreEqual(3776, posNum, "failed no auf"); cube.Solve(); cube.SetUpPosition(3776); cube.U(); posNum = cube.GetPosNum(); Assert.AreEqual(3776, posNum, "failed U"); cube.Solve(); cube.SetUpPosition(3776); cube.U2(); posNum = cube.GetPosNum(); Assert.AreEqual(3776, posNum, "failed U2"); cube.Solve(); cube.SetUpPosition(3776); cube.Ui(); posNum = cube.GetPosNum(); Assert.AreEqual(3776, posNum, "failed U'"); }
public void DotTests() { OneLookLLCube cube = new OneLookLLCube(); for (int k = 480; k < 960; k++) { cube.Solve(); cube.SetUpPosition(k); cube.Ui(); int posNum = cube.GetPosNum(); Assert.AreEqual(k, posNum, "failed on position " + k); } }