|
1 | | -using System; |
2 | 1 | using Xunit; |
3 | 2 |
|
4 | 3 | public class HammingTests |
5 | 4 | { |
6 | 5 | [Fact] |
7 | | - public void Empty_strands() |
| 6 | + public void EmptyStrands() |
8 | 7 | { |
9 | 8 | Assert.Equal(0, Hamming.Distance("", "")); |
10 | 9 | } |
11 | 10 |
|
12 | 11 | [Fact(Skip = "Remove this Skip property to run this test")] |
13 | | - public void Single_letter_identical_strands() |
| 12 | + public void SingleLetterIdenticalStrands() |
14 | 13 | { |
15 | 14 | Assert.Equal(0, Hamming.Distance("A", "A")); |
16 | 15 | } |
17 | 16 |
|
18 | 17 | [Fact(Skip = "Remove this Skip property to run this test")] |
19 | | - public void Single_letter_different_strands() |
| 18 | + public void SingleLetterDifferentStrands() |
20 | 19 | { |
21 | 20 | Assert.Equal(1, Hamming.Distance("G", "T")); |
22 | 21 | } |
23 | 22 |
|
24 | 23 | [Fact(Skip = "Remove this Skip property to run this test")] |
25 | | - public void Long_identical_strands() |
| 24 | + public void LongIdenticalStrands() |
26 | 25 | { |
27 | 26 | Assert.Equal(0, Hamming.Distance("GGACTGAAATCTG", "GGACTGAAATCTG")); |
28 | 27 | } |
29 | 28 |
|
30 | 29 | [Fact(Skip = "Remove this Skip property to run this test")] |
31 | | - public void Long_different_strands() |
| 30 | + public void LongDifferentStrands() |
32 | 31 | { |
33 | 32 | Assert.Equal(9, Hamming.Distance("GGACGGATTCTG", "AGGACGGATTCT")); |
34 | 33 | } |
35 | 34 |
|
36 | 35 | [Fact(Skip = "Remove this Skip property to run this test")] |
37 | | - public void Disallow_first_strand_longer() |
| 36 | + public void DisallowFirstStrandLonger() |
38 | 37 | { |
39 | 38 | Assert.Throws<ArgumentException>(() => Hamming.Distance("AATG", "AAA")); |
40 | 39 | } |
41 | 40 |
|
42 | 41 | [Fact(Skip = "Remove this Skip property to run this test")] |
43 | | - public void Disallow_second_strand_longer() |
| 42 | + public void DisallowSecondStrandLonger() |
44 | 43 | { |
45 | 44 | Assert.Throws<ArgumentException>(() => Hamming.Distance("ATA", "AGTG")); |
46 | 45 | } |
47 | 46 |
|
48 | 47 | [Fact(Skip = "Remove this Skip property to run this test")] |
49 | | - public void Disallow_empty_first_strand() |
| 48 | + public void DisallowEmptyFirstStrand() |
50 | 49 | { |
51 | 50 | Assert.Throws<ArgumentException>(() => Hamming.Distance("", "G")); |
52 | 51 | } |
53 | 52 |
|
54 | 53 | [Fact(Skip = "Remove this Skip property to run this test")] |
55 | | - public void Disallow_empty_second_strand() |
| 54 | + public void DisallowEmptySecondStrand() |
56 | 55 | { |
57 | 56 | Assert.Throws<ArgumentException>(() => Hamming.Distance("G", "")); |
58 | 57 | } |
|
0 commit comments