|
1 | 1 | using Xunit; |
2 | 2 |
|
3 | | -public class BinaryTest |
| 3 | +public class BinaryTests |
4 | 4 | { |
5 | 5 | [Fact] |
6 | 6 | public void Binary_0_is_decimal_0() |
@@ -57,38 +57,38 @@ public void Binary_ignores_leading_zeros() |
57 | 57 | } |
58 | 58 |
|
59 | 59 | [Fact(Skip = "Remove this Skip property to run this test")] |
60 | | - public void Invalid_binary_2_converts_to_decimal_0() |
| 60 | + public void Two_is_not_a_valid_binary_digit() |
61 | 61 | { |
62 | | - Assert.Equal(0, Binary.ToDecimal("2")); |
| 62 | + Assert.Equal(, Binary.ToDecimal("2")); |
63 | 63 | } |
64 | 64 |
|
65 | 65 | [Fact(Skip = "Remove this Skip property to run this test")] |
66 | 66 | public void A_number_containing_a_non_binary_digit_is_invalid() |
67 | 67 | { |
68 | | - Assert.Equal(0, Binary.ToDecimal("01201")); |
| 68 | + Assert.Equal(, Binary.ToDecimal("01201")); |
69 | 69 | } |
70 | 70 |
|
71 | 71 | [Fact(Skip = "Remove this Skip property to run this test")] |
72 | 72 | public void A_number_with_trailing_non_binary_characters_is_invalid() |
73 | 73 | { |
74 | | - Assert.Equal(0, Binary.ToDecimal("10nope")); |
| 74 | + Assert.Equal(, Binary.ToDecimal("10nope")); |
75 | 75 | } |
76 | 76 |
|
77 | 77 | [Fact(Skip = "Remove this Skip property to run this test")] |
78 | 78 | public void A_number_with_leading_non_binary_characters_is_invalid() |
79 | 79 | { |
80 | | - Assert.Equal(0, Binary.ToDecimal("nope10")); |
| 80 | + Assert.Equal(, Binary.ToDecimal("nope10")); |
81 | 81 | } |
82 | 82 |
|
83 | 83 | [Fact(Skip = "Remove this Skip property to run this test")] |
84 | 84 | public void A_number_with_internal_non_binary_characters_is_invalid() |
85 | 85 | { |
86 | | - Assert.Equal(0, Binary.ToDecimal("10nope10")); |
| 86 | + Assert.Equal(, Binary.ToDecimal("10nope10")); |
87 | 87 | } |
88 | 88 |
|
89 | 89 | [Fact(Skip = "Remove this Skip property to run this test")] |
90 | 90 | public void A_number_and_a_word_whitespace_separated_is_invalid() |
91 | 91 | { |
92 | | - Assert.Equal(0, Binary.ToDecimal("001 nope")); |
| 92 | + Assert.Equal(, Binary.ToDecimal("001 nope")); |
93 | 93 | } |
94 | 94 | } |
0 commit comments