示例#1
0
 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."));
 }
示例#2
0
 public void RotatePunctuation()
 {
     Tasks.RotationalCipher rotationalCipher = new Tasks.RotationalCipher(21);
     Assert.Equal("Gzo'n zvo, Bmviyhv!", rotationalCipher.Rotate("Let's eat, Grandma!"));
 }
示例#3
0
 public void RotateCapitalLetters()
 {
     Tasks.RotationalCipher rotationalCipher = new Tasks.RotationalCipher(5);
     Assert.Equal("TRL", rotationalCipher.Rotate("OMG"));
 }
示例#4
0
 public void RotateNumbers()
 {
     Tasks.RotationalCipher rotationalCipher = new Tasks.RotationalCipher(4);
     Assert.Equal("Xiwxmrk 1 2 3 xiwxmrk", rotationalCipher.Rotate("Testing 1 2 3 testing"));
 }
示例#5
0
 public void RotateSingleCharacterWithWrapAround()
 {
     Tasks.RotationalCipher rotationalCipher = new Tasks.RotationalCipher(13);
     Assert.Equal("a", rotationalCipher.Rotate("n"));
 }