1
+ using Microsoft . VisualStudio . TestTools . UnitTesting ;
2
+ using Skybrud . TextAnalysis . Hunspell ;
3
+ using Skybrud . TextAnalysis . Hunspell . Stem ;
4
+
5
+ namespace UnitTestProject1 . Hunspell {
6
+
7
+ [ TestClass ]
8
+ public class SpellTests {
9
+
10
+ [ TestMethod ]
11
+ public void børnehave ( ) {
12
+ HunspellTextAnalyzer analyzer = UnitTestHelper . GetDanishTextAnalyzer ( ) ;
13
+ bool result = analyzer . Spell ( "børnehave" ) ;
14
+ Assert . IsTrue ( result ) ;
15
+ }
16
+
17
+ [ TestMethod ]
18
+ public void børnehaver ( ) {
19
+ HunspellTextAnalyzer analyzer = UnitTestHelper . GetDanishTextAnalyzer ( ) ;
20
+ bool result = analyzer . Spell ( "børnehaver" ) ;
21
+ Assert . IsTrue ( result ) ;
22
+ }
23
+
24
+ [ TestMethod ]
25
+ public void chefredaktør ( ) {
26
+ HunspellTextAnalyzer analyzer = UnitTestHelper . GetDanishTextAnalyzer ( ) ;
27
+ bool result = analyzer . Spell ( "chefredaktør" ) ;
28
+ Assert . IsTrue ( result ) ;
29
+ }
30
+
31
+ [ TestMethod ]
32
+ public void webredaktør ( ) {
33
+ HunspellTextAnalyzer analyzer = UnitTestHelper . GetDanishTextAnalyzer ( ) ;
34
+ bool result = analyzer . Spell ( "webredaktør" ) ;
35
+ Assert . IsTrue ( result ) ;
36
+ }
37
+
38
+ [ TestMethod ]
39
+ public void webredaktører ( ) {
40
+ HunspellTextAnalyzer analyzer = UnitTestHelper . GetDanishTextAnalyzer ( ) ;
41
+ bool result = analyzer . Spell ( "webredaktører" ) ;
42
+ Assert . IsTrue ( result ) ;
43
+ }
44
+
45
+ [ TestMethod ]
46
+ public void somerhus ( ) {
47
+ HunspellTextAnalyzer analyzer = UnitTestHelper . GetDanishTextAnalyzer ( ) ;
48
+ bool result = analyzer . Spell ( "somerhus" ) ;
49
+ Assert . IsFalse ( result ) ;
50
+ }
51
+
52
+ [ TestMethod ]
53
+ public void sommerhus ( ) {
54
+ HunspellTextAnalyzer analyzer = UnitTestHelper . GetDanishTextAnalyzer ( ) ;
55
+ bool result = analyzer . Spell ( "sommerhus" ) ;
56
+ Assert . IsTrue ( result ) ;
57
+ }
58
+
59
+ [ TestMethod ]
60
+ public void avisuddeler ( ) {
61
+ HunspellTextAnalyzer analyzer = UnitTestHelper . GetDanishTextAnalyzer ( ) ;
62
+ bool result = analyzer . Spell ( "avisuddeler" ) ;
63
+ Assert . IsTrue ( result ) ;
64
+ }
65
+
66
+ [ TestMethod ]
67
+ public void avisuddelerens ( ) {
68
+ HunspellTextAnalyzer analyzer = UnitTestHelper . GetDanishTextAnalyzer ( ) ;
69
+ bool result = analyzer . Spell ( "avisuddelerens" ) ;
70
+ Assert . IsTrue ( result ) ;
71
+ }
72
+
73
+ [ TestMethod ]
74
+ public void Avisuddelerens2 ( ) {
75
+ HunspellTextAnalyzer analyzer = UnitTestHelper . GetDanishTextAnalyzer ( ) ;
76
+ bool result = analyzer . Spell ( "Avisuddelerens" ) ;
77
+ Assert . IsTrue ( result ) ;
78
+ }
79
+
80
+ [ TestMethod ]
81
+ public void karen ( ) {
82
+ HunspellTextAnalyzer analyzer = UnitTestHelper . GetDanishTextAnalyzer ( ) ;
83
+ bool result = analyzer . Spell ( "karen" ) ;
84
+ Assert . IsFalse ( result ) ;
85
+ }
86
+
87
+ [ TestMethod ]
88
+ public void Karen ( ) {
89
+ HunspellTextAnalyzer analyzer = UnitTestHelper . GetDanishTextAnalyzer ( ) ;
90
+ bool result = analyzer . Spell ( "Karen" ) ;
91
+ Assert . IsTrue ( result ) ;
92
+ }
93
+
94
+ [ TestMethod ]
95
+ public void landzonetilladelse ( ) {
96
+ HunspellTextAnalyzer analyzer = UnitTestHelper . GetDanishTextAnalyzer ( ) ;
97
+ bool result = analyzer . Spell ( "landzonetilladelse" ) ;
98
+ Assert . IsTrue ( result ) ;
99
+ }
100
+
101
+ [ TestMethod ]
102
+ public void EAN ( ) {
103
+ HunspellTextAnalyzer analyzer = UnitTestHelper . GetDanishTextAnalyzer ( ) ;
104
+ bool result = analyzer . Spell ( "EAN" ) ;
105
+ Assert . IsTrue ( result ) ;
106
+ }
107
+
108
+ [ TestMethod ]
109
+ public void ABCDEFG ( ) {
110
+ HunspellTextAnalyzer analyzer = UnitTestHelper . GetDanishTextAnalyzer ( ) ;
111
+ bool result = analyzer . Spell ( "ABCDEFG" ) ;
112
+ Assert . IsFalse ( result ) ;
113
+ }
114
+
115
+ }
116
+
117
+ }
0 commit comments