@@ -37,10 +37,10 @@ public void TestInitializingPhonabet() {
3737 Phonabet thePhonabetC = new Phonabet ( "ㄠ" ) ;
3838 Phonabet thePhonabetD = new Phonabet ( "ˇ" ) ;
3939 Assert . True ( thePhonabetNull . Type == PhoneType . Null &&
40- thePhonabetA . Type == PhoneType . Consonant &&
41- thePhonabetB . Type == PhoneType . Semivowel &&
42- thePhonabetC . Type == PhoneType . Vowel &&
43- thePhonabetD . Type == PhoneType . Intonation ) ;
40+ thePhonabetA . Type == PhoneType . Consonant &&
41+ thePhonabetB . Type == PhoneType . Semivowel &&
42+ thePhonabetC . Type == PhoneType . Vowel &&
43+ thePhonabetD . Type == PhoneType . Intonation ) ;
4444 Assert . AreEqual ( new Rune ( '~' ) , thePhonabetNull . ScalarValue ) ;
4545 Assert . AreEqual ( new Rune ( 'ㄉ' ) , thePhonabetA . ScalarValue ) ;
4646 Assert . AreEqual ( new Rune ( 'ㄧ' ) , thePhonabetB . ScalarValue ) ;
@@ -84,27 +84,27 @@ public void TestPhonabetKeyReceivingAndCompositions() {
8484 bool toneMarkerIndicator ;
8585
8686 // Test Key Receiving;
87- composer . ReceiveKey ( 0x0032 ) ; // 2, ㄉ
88- composer . ReceiveKey ( "j" ) ; // ㄨ
89- composer . ReceiveKey ( "u" ) ; // ㄧ
90- composer . ReceiveKey ( "l" ) ; // ㄠ
87+ composer . ReceiveKey ( 0x0032 ) ; // 2, ㄉ
88+ composer . ReceiveKey ( "j" ) ; // ㄨ
89+ composer . ReceiveKey ( "u" ) ; // ㄧ
90+ composer . ReceiveKey ( "l" ) ; // ㄠ
9191
9292 // Testing missing tone markers;
9393 toneMarkerIndicator = composer . HasIntonation ( ) ;
9494 Assert . True ( ! toneMarkerIndicator ) ;
9595
96- composer . ReceiveKey ( "3" ) ; // 上聲
96+ composer . ReceiveKey ( "3" ) ; // 上聲
9797 Assert . AreEqual ( actual : composer . Value , expected : "ㄉㄧㄠˇ" ) ;
9898 composer . DoBackSpace ( ) ;
99- composer . ReceiveKey ( " " ) ; // 陰平
99+ composer . ReceiveKey ( " " ) ; // 陰平
100100 Assert . AreEqual ( actual : composer . Value ,
101- expected : "ㄉㄧㄠ " ) ; // 這裡回傳的結果的陰平是空格
101+ expected : "ㄉㄧㄠ " ) ; // 這裡回傳的結果的陰平是空格
102102
103103 // Test Getting Displayed Composition
104104 Assert . AreEqual ( actual : composer . GetComposition ( ) , expected : "ㄉㄧㄠ" ) ;
105105
106106 // Test Tone 5
107- composer . ReceiveKey ( "7" ) ; // 輕聲
107+ composer . ReceiveKey ( "7" ) ; // 輕聲
108108 Assert . AreEqual ( actual : composer . GetComposition ( ) , expected : "ㄉㄧㄠ˙" ) ;
109109
110110 // Testing having tone markers
@@ -117,7 +117,7 @@ public void TestPhonabetKeyReceivingAndCompositions() {
117117
118118 // Testing having only tone markers
119119 composer . Clear ( ) ;
120- composer . ReceiveKey ( "3" ) ; // 上聲
120+ composer . ReceiveKey ( "3" ) ; // 上聲
121121 toneMarkerIndicator = composer . HasIntonation ( withNothingElse : true ) ;
122122 Assert . True ( toneMarkerIndicator ) ;
123123
@@ -208,7 +208,7 @@ public void TestPhonabetKeyReceivingAndCompositions() {
208208 [ Test ]
209209 public void TestPhonabetCombinationCorrection ( ) {
210210 Composer composer =
211- new Composer ( arrange : MandarinParser . OfDachen , correction : true ) ;
211+ new Composer ( arrange : MandarinParser . OfDachen , correction : true ) ;
212212 composer . ReceiveKeyFromPhonabet ( new Rune ( 'ㄓ' ) ) ;
213213 composer . ReceiveKeyFromPhonabet ( new Rune ( 'ㄧ' ) ) ;
214214 composer . ReceiveKeyFromPhonabet ( new Rune ( 'ˋ' ) ) ;
@@ -251,7 +251,7 @@ public void TestPhonabetCombinationCorrection() {
251251 public void TestSemivowelNormalizationWithEncounteredVowels ( ) {
252252 // 測試自動將「ㄩ」轉寫為「ㄨ」的情境,避免輸出異常的拼法。
253253 Composer composer =
254- new Composer ( arrange : MandarinParser . OfDachen , correction : true ) ;
254+ new Composer ( arrange : MandarinParser . OfDachen , correction : true ) ;
255255 composer . ReceiveKeyFromPhonabet ( "ㄩ" ) ;
256256 composer . ReceiveKeyFromPhonabet ( "ㄛ" ) ;
257257 Assert . AreEqual ( "ㄨㄛ" , composer . Value ) ;
@@ -297,20 +297,20 @@ public void TestMandarinParserExtensions() {
297297 Assert . False ( MandarinParser . OfIBM . IsDynamic ( ) ) ;
298298
299299 IReadOnlyDictionary < string , string > pinyinMap =
300- MandarinParser . OfHanyuPinyin . MapZhuyinPinyin ( ) ;
300+ MandarinParser . OfHanyuPinyin . MapZhuyinPinyin ( ) ;
301301 Assert . NotNull ( pinyinMap ) ;
302302 Assert . True ( pinyinMap . ContainsKey ( "zhe" ) ) ;
303303 Assert . AreEqual ( "ㄓㄜ" , pinyinMap [ "zhe" ] ) ;
304304
305305 Assert . IsNull ( MandarinParser . OfDachen . MapZhuyinPinyin ( ) ) ;
306306
307307 HashSet < string > hanyuReadings =
308- MandarinParser . OfHanyuPinyin . AllPossibleReadings ( ) ;
308+ MandarinParser . OfHanyuPinyin . AllPossibleReadings ( ) ;
309309 Assert . True ( hanyuReadings . Contains ( "shi" ) ) ;
310310 Assert . True ( hanyuReadings . Contains ( "shi4" ) ) ;
311311
312312 HashSet < string > zhuyinReadings =
313- MandarinParser . OfDachen . AllPossibleReadings ( ) ;
313+ MandarinParser . OfDachen . AllPossibleReadings ( ) ;
314314 Assert . True ( zhuyinReadings . Contains ( "ㄅㄚ" ) ) ;
315315 Assert . True ( zhuyinReadings . Contains ( "ㄅㄚˋ" ) ) ;
316316
0 commit comments