|
3 | 3 | public class RotationalCipherTests |
4 | 4 | { |
5 | 5 | [Fact] |
6 | | - public void Rotate_a_by_0_same_output_as_input() |
| 6 | + public void RotateABy0SameOutputAsInput() |
7 | 7 | { |
8 | | - Assert.Equal("a", RotationalCipher.Rotate("a", 0)); |
| 8 | + Assert.Equal(a, RotationalCipher.Rotate("a", 0)); |
9 | 9 | } |
10 | 10 |
|
11 | 11 | [Fact(Skip = "Remove this Skip property to run this test")] |
12 | | - public void Rotate_a_by_1() |
| 12 | + public void RotateABy1() |
13 | 13 | { |
14 | | - Assert.Equal("b", RotationalCipher.Rotate("a", 1)); |
| 14 | + Assert.Equal(b, RotationalCipher.Rotate("a", 1)); |
15 | 15 | } |
16 | 16 |
|
17 | 17 | [Fact(Skip = "Remove this Skip property to run this test")] |
18 | | - public void Rotate_a_by_26_same_output_as_input() |
| 18 | + public void RotateABy26SameOutputAsInput() |
19 | 19 | { |
20 | | - Assert.Equal("a", RotationalCipher.Rotate("a", 26)); |
| 20 | + Assert.Equal(a, RotationalCipher.Rotate("a", 26)); |
21 | 21 | } |
22 | 22 |
|
23 | 23 | [Fact(Skip = "Remove this Skip property to run this test")] |
24 | | - public void Rotate_m_by_13() |
| 24 | + public void RotateMBy13() |
25 | 25 | { |
26 | | - Assert.Equal("z", RotationalCipher.Rotate("m", 13)); |
| 26 | + Assert.Equal(z, RotationalCipher.Rotate("m", 13)); |
27 | 27 | } |
28 | 28 |
|
29 | 29 | [Fact(Skip = "Remove this Skip property to run this test")] |
30 | | - public void Rotate_n_by_13_with_wrap_around_alphabet() |
| 30 | + public void RotateNBy13WithWrapAroundAlphabet() |
31 | 31 | { |
32 | | - Assert.Equal("a", RotationalCipher.Rotate("n", 13)); |
| 32 | + Assert.Equal(a, RotationalCipher.Rotate("n", 13)); |
33 | 33 | } |
34 | 34 |
|
35 | 35 | [Fact(Skip = "Remove this Skip property to run this test")] |
36 | | - public void Rotate_capital_letters() |
| 36 | + public void RotateCapitalLetters() |
37 | 37 | { |
38 | | - Assert.Equal("TRL", RotationalCipher.Rotate("OMG", 5)); |
| 38 | + Assert.Equal(TRL, RotationalCipher.Rotate("OMG", 5)); |
39 | 39 | } |
40 | 40 |
|
41 | 41 | [Fact(Skip = "Remove this Skip property to run this test")] |
42 | | - public void Rotate_spaces() |
| 42 | + public void RotateSpaces() |
43 | 43 | { |
44 | | - Assert.Equal("T R L", RotationalCipher.Rotate("O M G", 5)); |
| 44 | + Assert.Equal(T R L, RotationalCipher.Rotate("O M G", 5)); |
45 | 45 | } |
46 | 46 |
|
47 | 47 | [Fact(Skip = "Remove this Skip property to run this test")] |
48 | | - public void Rotate_numbers() |
| 48 | + public void RotateNumbers() |
49 | 49 | { |
50 | | - Assert.Equal("Xiwxmrk 1 2 3 xiwxmrk", RotationalCipher.Rotate("Testing 1 2 3 testing", 4)); |
| 50 | + Assert.Equal(Xiwxmrk 1 2 3 xiwxmrk, RotationalCipher.Rotate("Testing 1 2 3 testing", 4)); |
51 | 51 | } |
52 | 52 |
|
53 | 53 | [Fact(Skip = "Remove this Skip property to run this test")] |
54 | | - public void Rotate_punctuation() |
| 54 | + public void RotatePunctuation() |
55 | 55 | { |
56 | | - Assert.Equal("Gzo'n zvo, Bmviyhv!", RotationalCipher.Rotate("Let's eat, Grandma!", 21)); |
| 56 | + Assert.Equal(Gzo 'n zvo, Bmviyhv!, RotationalCipher.Rotate("Let' s eat, Grandma!", 21)); |
57 | 57 | } |
58 | 58 |
|
59 | 59 | [Fact(Skip = "Remove this Skip property to run this test")] |
60 | | - public void Rotate_all_letters() |
| 60 | + public void RotateAllLetters() |
61 | 61 | { |
62 | | - Assert.Equal("Gur dhvpx oebja sbk whzcf bire gur ynml qbt.", RotationalCipher.Rotate("The quick brown fox jumps over the lazy dog.", 13)); |
| 62 | + Assert.Equal(Gur dhvpx oebja sbk whzcf bire gur ynml qbt., RotationalCipher.Rotate("The quick brown fox jumps over the lazy dog.", 13)); |
63 | 63 | } |
64 | 64 | } |
0 commit comments