-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIsogrammaTest.cs
84 lines (70 loc) · 1.88 KB
/
IsogrammaTest.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
// This file was auto-generated based on version 1.7.0 of the canonical data.
using Xunit;
public class TestIsogramma
{
[Fact]
public void Empty_string()
{
Assert.True(Isogramma.Verifica(""));
}
[Fact]
public void Isogram_with_only_lower_case_characters()
{
Assert.True(Isogramma.Verifica("isogram"));
}
[Fact]
public void Word_with_one_duplicated_character()
{
Assert.False(Isogramma.Verifica("eleven"));
}
[Fact]
public void Word_with_one_duplicated_character_from_the_end_of_the_alphabet()
{
Assert.False(Isogramma.Verifica("zzyzx"));
}
[Fact]
public void Longest_reported_english_isogram()
{
Assert.True(Isogramma.Verifica("subdermatoglyphic"));
}
[Fact]
public void Word_with_duplicated_character_in_mixed_case()
{
Assert.False(Isogramma.Verifica("Alphabet"));
}
[Fact]
public void Word_with_duplicated_character_in_mixed_case_lowercase_first()
{
Assert.False(Isogramma.Verifica("alphAbet"));
}
[Fact]
public void Hypothetical_isogrammic_word_with_hyphen()
{
Assert.True(Isogramma.Verifica("thumbscrew-japingly"));
}
[Fact]
public void Hypothetical_word_with_duplicated_character_following_hyphen()
{
Assert.False(Isogramma.Verifica("thumbscrew-jappingly"));
}
[Fact]
public void Isogram_with_duplicated_hyphen()
{
Assert.True(Isogramma.Verifica("six-year-old"));
}
[Fact]
public void Made_up_name_that_is_an_isogram()
{
Assert.True(Isogramma.Verifica("Emily Jung Schwartzkopf"));
}
[Fact]
public void Duplicated_character_in_the_middle()
{
Assert.False(Isogramma.Verifica("accentor"));
}
[Fact]
public void Same_first_and_last_characters()
{
Assert.False(Isogramma.Verifica("angola"));
}
}