1- // Copyright (c) 2013 SIL International
1+ // Copyright (c) 2013-2025 SIL Global
22// This software is licensed under the MIT license (http://opensource.org/licenses/MIT)
33using System ;
44using System . Collections . Generic ;
@@ -11,10 +11,10 @@ namespace Icu.Tests
1111 [ Category ( "Full ICU" ) ]
1212 public class BreakIteratorTests
1313 {
14- [ TestCase ( BreakIterator . UBreakIteratorType . CHARACTER , "abc" , ExpectedResult = new [ ] { "a" , "b" , "c" } ) ]
15- [ TestCase ( BreakIterator . UBreakIteratorType . WORD , "Aa Bb. Cc" , ExpectedResult = new [ ] { "Aa" , "Bb" , "Cc" } ) ]
16- [ TestCase ( BreakIterator . UBreakIteratorType . LINE , "Aa Bb. Cc" , ExpectedResult = new [ ] { "Aa " , "Bb. " , "Cc" } ) ]
17- [ TestCase ( BreakIterator . UBreakIteratorType . SENTENCE , "Aa bb. Cc 3.5 x? Y?x! Z" , ExpectedResult = new [ ] { "Aa bb. " , "Cc 3.5 x? " , "Y?" , "x! " , "Z" } ) ]
14+ [ TestCase ( BreakIterator . UBreakIteratorType . CHARACTER , "abc" , ExpectedResult = new [ ] { "a" , "b" , "c" } ) ]
15+ [ TestCase ( BreakIterator . UBreakIteratorType . WORD , "Aa Bb. Cc" , ExpectedResult = new [ ] { "Aa" , "Bb" , "Cc" } ) ]
16+ [ TestCase ( BreakIterator . UBreakIteratorType . LINE , "Aa Bb. Cc" , ExpectedResult = new [ ] { "Aa " , "Bb. " , "Cc" } ) ]
17+ [ TestCase ( BreakIterator . UBreakIteratorType . SENTENCE , "Aa bb. Cc 3.5 x? Y?x! Z" , ExpectedResult = new [ ] { "Aa bb. " , "Cc 3.5 x? " , "Y?" , "x! " , "Z" } ) ]
1818 public IEnumerable < string > Split ( BreakIterator . UBreakIteratorType type , string text )
1919 {
2020 return BreakIterator . Split ( type , "en-US" , text ) ;
@@ -102,7 +102,7 @@ public void GetWordBoundaries_IncludeSpacesAndPunctuation()
102102 }
103103
104104 /// <summary>
105- /// The hypenated text case tests the difference between Word and Line
105+ /// The hyphenated text case tests the difference between Word and Line
106106 /// breaks described in:
107107 /// http://userguide.icu-project.org/boundaryanalysis#TOC-Line-break-Boundary
108108 /// </summary>
@@ -128,7 +128,7 @@ public void GetWordAndLineBoundariesWithHyphenatedText()
128128 }
129129
130130 [ Test ]
131- public void CreateChracterInstanceTest ( )
131+ public void CreateCharacterInstanceTest ( )
132132 {
133133 var locale = new Locale ( "de-DE" ) ;
134134 var text = "Good-bye, dear!" ;
@@ -647,10 +647,14 @@ public void Clone()
647647 }
648648 }
649649
650- [ TestCase ( BreakIterator . UBreakIteratorType . CHARACTER , ExpectedResult = new [ ] { "A" , "a" , " " , "b" , "b" , "." , " " , "C" , "c" , " " , "3" , "." , "5" , " " , "x" , "?" , " " , "Y" , "?" , "x" , "!" , " " , "Z" } ) ]
651- [ TestCase ( BreakIterator . UBreakIteratorType . WORD , ExpectedResult = new [ ] { "Aa" , " " , "bb" , "." , " " , "Cc" , " " , "3.5" , " " , "x" , "?" , " " , "Y" , "?" , "x" , "!" , " " , "Z" } ) ]
652- [ TestCase ( BreakIterator . UBreakIteratorType . LINE , ExpectedResult = new [ ] { "Aa " , "bb. " , "Cc " , "3.5 " , "x? " , "Y?" , "x! " , "Z" } ) ]
653- [ TestCase ( BreakIterator . UBreakIteratorType . SENTENCE , ExpectedResult = new [ ] { "Aa bb. " , "Cc 3.5 x? " , "Y?" , "x! " , "Z" } ) ]
650+ [ TestCase ( BreakIterator . UBreakIteratorType . CHARACTER ,
651+ ExpectedResult = new [ ] { "A" , "a" , " " , "b" , "b" , "." , " " , "C" , "c" , " " , "3" , "." , "5" , " " , "x" , "?" , " " , "Y" , "?" , "x" , "!" , " " , "Z" } ) ]
652+ [ TestCase ( BreakIterator . UBreakIteratorType . WORD ,
653+ ExpectedResult = new [ ] { "Aa" , " " , "bb" , "." , " " , "Cc" , " " , "3.5" , " " , "x" , "?" , " " , "Y" , "?" , "x" , "!" , " " , "Z" } ) ]
654+ [ TestCase ( BreakIterator . UBreakIteratorType . LINE ,
655+ ExpectedResult = new [ ] { "Aa " , "bb. " , "Cc " , "3.5 " , "x? " , "Y?" , "x! " , "Z" } ) ]
656+ [ TestCase ( BreakIterator . UBreakIteratorType . SENTENCE ,
657+ ExpectedResult = new [ ] { "Aa bb. " , "Cc 3.5 x? " , "Y?" , "x! " , "Z" } ) ]
654658 public List < string > GetEnumerator ( BreakIterator . UBreakIteratorType type )
655659 {
656660 using ( var breakIterator = new RuleBasedBreakIterator ( type , "en-US" ) )
0 commit comments