private void updateImages() { front.Source = imageSourceManager.getImageByKey(cubeRotationHandler.getFrontImage().Key); right.Source = imageSourceManager.getImageByKey(cubeRotationHandler.getRightImage().Key); top.Source = imageSourceManager.getImageByKey(cubeRotationHandler.getTopImage().Key); rightRotateTransform.Angle = resolveAngle(cubeRotationHandler.getRightImage().Direction) + 90; topRotateTransform.Angle = resolveAngle(cubeRotationHandler.getTopImage().Direction); frontRotateTransform.Angle = resolveAngle(cubeRotationHandler.getFrontImage().Direction); }
private void rightEqual(Direction direction, ImageKey key) { Assert.AreEqual(direction, Handler.getRightImage().Direction); Assert.AreEqual(key, Handler.getRightImage().Key); }