public void RotateAllLetters() { Tasks.RotationalCipher rotationalCipher = new Tasks.RotationalCipher(13); Assert.Equal("The quick brown fox jumps over the lazy dog.", rotationalCipher.Rotate("Gur dhvpx oebja sbk whzcf bire gur ynml qbt.")); }
public void RotatePunctuation() { Tasks.RotationalCipher rotationalCipher = new Tasks.RotationalCipher(21); Assert.Equal("Gzo'n zvo, Bmviyhv!", rotationalCipher.Rotate("Let's eat, Grandma!")); }
public void RotateCapitalLetters() { Tasks.RotationalCipher rotationalCipher = new Tasks.RotationalCipher(5); Assert.Equal("TRL", rotationalCipher.Rotate("OMG")); }
public void RotateNumbers() { Tasks.RotationalCipher rotationalCipher = new Tasks.RotationalCipher(4); Assert.Equal("Xiwxmrk 1 2 3 xiwxmrk", rotationalCipher.Rotate("Testing 1 2 3 testing")); }
public void RotateSingleCharacterWithWrapAround() { Tasks.RotationalCipher rotationalCipher = new Tasks.RotationalCipher(13); Assert.Equal("a", rotationalCipher.Rotate("n")); }