public void Skewb_Create_HasValidFaces() { // 1. Prepare // 2. Execute SkewbCube c = new SkewbCube(); // 3. Verify foreach (CoreFace face in c.Faces) { Assert.Equal(5, c.GetBlocksForFace(face.Id).Count()); } RotationCoreAssert.ExposeAllFaces(c); }
public void Skewb_RotateOnce_HasValidFaces(string axisId, bool isClockwise) { // 1. Prepare SkewbCube c = new SkewbCube(); var axis = c.GetAxis(axisId); // 2. Execute c.RotateAround(axis, isClockwise); // 3. Verify foreach (CoreFace face in c.Faces) { Assert.Equal(5, c.GetBlocksForFace(face.Id).Count()); } RotationCoreAssert.ExposeAllFaces(c); }