TextFormatterJustificationTests.cs 67 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429
  1. using System.Text;
  2. using UnitTests;
  3. using Xunit.Abstractions;
  4. // Alias Console to MockConsole so we don't accidentally use Console
  5. namespace UnitTests_Parallelizable.TextTests;
  6. public class TextFormatterJustificationTests (ITestOutputHelper output) : FakeDriverBase
  7. {
  8. [Theory]
  9. // Horizontal with Alignment.Start
  10. // LeftRight_TopBottom
  11. [InlineData (
  12. "0 2 4",
  13. Alignment.Start,
  14. Alignment.Start,
  15. TextDirection.LeftRight_TopBottom,
  16. @"
  17. 0 2 4**
  18. *******
  19. *******
  20. *******
  21. *******
  22. *******
  23. *******")]
  24. [InlineData (
  25. "0 2 4",
  26. Alignment.End,
  27. Alignment.Start,
  28. TextDirection.LeftRight_TopBottom,
  29. @"
  30. **0 2 4
  31. *******
  32. *******
  33. *******
  34. *******
  35. *******
  36. *******")]
  37. [InlineData (
  38. "0 2 4",
  39. Alignment.Center,
  40. Alignment.Start,
  41. TextDirection.LeftRight_TopBottom,
  42. @"
  43. *0 2 4*
  44. *******
  45. *******
  46. *******
  47. *******
  48. *******
  49. *******")]
  50. [InlineData (
  51. "0 2 4",
  52. Alignment.Fill,
  53. Alignment.Start,
  54. TextDirection.LeftRight_TopBottom,
  55. @"
  56. 0 2 4
  57. *******
  58. *******
  59. *******
  60. *******
  61. *******
  62. *******")]
  63. [InlineData (
  64. "0 你 4",
  65. Alignment.Start,
  66. Alignment.Start,
  67. TextDirection.LeftRight_TopBottom,
  68. @"
  69. 0 你 4*
  70. *******
  71. *******
  72. *******
  73. *******
  74. *******
  75. *******")]
  76. [InlineData (
  77. "0 你 4",
  78. Alignment.End,
  79. Alignment.Start,
  80. TextDirection.LeftRight_TopBottom,
  81. @"
  82. *0 你 4
  83. *******
  84. *******
  85. *******
  86. *******
  87. *******
  88. *******")]
  89. [InlineData (
  90. "0 你 4",
  91. Alignment.Center,
  92. Alignment.Start,
  93. TextDirection.LeftRight_TopBottom,
  94. @"
  95. 0 你 4*
  96. *******
  97. *******
  98. *******
  99. *******
  100. *******
  101. *******")]
  102. [InlineData (
  103. "0 你 4",
  104. Alignment.Fill,
  105. Alignment.Start,
  106. TextDirection.LeftRight_TopBottom,
  107. @"
  108. 0 你 4
  109. *******
  110. *******
  111. *******
  112. *******
  113. *******
  114. *******")]
  115. // LeftRight_BottomTop
  116. [InlineData (
  117. "0 2 4",
  118. Alignment.Start,
  119. Alignment.Start,
  120. TextDirection.LeftRight_BottomTop,
  121. @"
  122. 0 2 4**
  123. *******
  124. *******
  125. *******
  126. *******
  127. *******
  128. *******")]
  129. [InlineData (
  130. "0 2 4",
  131. Alignment.End,
  132. Alignment.Start,
  133. TextDirection.LeftRight_BottomTop,
  134. @"
  135. **0 2 4
  136. *******
  137. *******
  138. *******
  139. *******
  140. *******
  141. *******")]
  142. [InlineData (
  143. "0 2 4",
  144. Alignment.Center,
  145. Alignment.Start,
  146. TextDirection.LeftRight_BottomTop,
  147. @"
  148. *0 2 4*
  149. *******
  150. *******
  151. *******
  152. *******
  153. *******
  154. *******")]
  155. [InlineData (
  156. "0 2 4",
  157. Alignment.Fill,
  158. Alignment.Start,
  159. TextDirection.LeftRight_BottomTop,
  160. @"
  161. 0 2 4
  162. *******
  163. *******
  164. *******
  165. *******
  166. *******
  167. *******")]
  168. [InlineData (
  169. "0 你 4",
  170. Alignment.Start,
  171. Alignment.Start,
  172. TextDirection.LeftRight_BottomTop,
  173. @"
  174. 0 你 4*
  175. *******
  176. *******
  177. *******
  178. *******
  179. *******
  180. *******")]
  181. [InlineData (
  182. "0 你 4",
  183. Alignment.End,
  184. Alignment.Start,
  185. TextDirection.LeftRight_BottomTop,
  186. @"
  187. *0 你 4
  188. *******
  189. *******
  190. *******
  191. *******
  192. *******
  193. *******")]
  194. [InlineData (
  195. "0 你 4",
  196. Alignment.Center,
  197. Alignment.Start,
  198. TextDirection.LeftRight_BottomTop,
  199. @"
  200. 0 你 4*
  201. *******
  202. *******
  203. *******
  204. *******
  205. *******
  206. *******")]
  207. [InlineData (
  208. "0 你 4",
  209. Alignment.Fill,
  210. Alignment.Start,
  211. TextDirection.LeftRight_BottomTop,
  212. @"
  213. 0 你 4
  214. *******
  215. *******
  216. *******
  217. *******
  218. *******
  219. *******")]
  220. // RightLeft_TopBottom
  221. [InlineData (
  222. "0 2 4",
  223. Alignment.Start,
  224. Alignment.Start,
  225. TextDirection.RightLeft_TopBottom,
  226. @"
  227. 4 2 0**
  228. *******
  229. *******
  230. *******
  231. *******
  232. *******
  233. *******")]
  234. [InlineData (
  235. "0 2 4",
  236. Alignment.End,
  237. Alignment.Start,
  238. TextDirection.RightLeft_TopBottom,
  239. @"
  240. **4 2 0
  241. *******
  242. *******
  243. *******
  244. *******
  245. *******
  246. *******")]
  247. [InlineData (
  248. "0 2 4",
  249. Alignment.Center,
  250. Alignment.Start,
  251. TextDirection.RightLeft_TopBottom,
  252. @"
  253. *4 2 0*
  254. *******
  255. *******
  256. *******
  257. *******
  258. *******
  259. *******")]
  260. [InlineData (
  261. "0 2 4",
  262. Alignment.Fill,
  263. Alignment.Start,
  264. TextDirection.RightLeft_TopBottom,
  265. @"
  266. 4 2 0
  267. *******
  268. *******
  269. *******
  270. *******
  271. *******
  272. *******")]
  273. [InlineData (
  274. "0 你 4",
  275. Alignment.Start,
  276. Alignment.Start,
  277. TextDirection.RightLeft_TopBottom,
  278. @"
  279. 4 你 0*
  280. *******
  281. *******
  282. *******
  283. *******
  284. *******
  285. *******")]
  286. [InlineData (
  287. "0 你 4",
  288. Alignment.End,
  289. Alignment.Start,
  290. TextDirection.RightLeft_TopBottom,
  291. @"
  292. *4 你 0
  293. *******
  294. *******
  295. *******
  296. *******
  297. *******
  298. *******")]
  299. [InlineData (
  300. "0 你 4",
  301. Alignment.Center,
  302. Alignment.Start,
  303. TextDirection.RightLeft_TopBottom,
  304. @"
  305. 4 你 0*
  306. *******
  307. *******
  308. *******
  309. *******
  310. *******
  311. *******")]
  312. [InlineData (
  313. "0 你 4",
  314. Alignment.Fill,
  315. Alignment.Start,
  316. TextDirection.RightLeft_TopBottom,
  317. @"
  318. 4 你 0
  319. *******
  320. *******
  321. *******
  322. *******
  323. *******
  324. *******")]
  325. // RightLeft_BottomTop
  326. [InlineData (
  327. "0 2 4",
  328. Alignment.Start,
  329. Alignment.Start,
  330. TextDirection.RightLeft_BottomTop,
  331. @"
  332. 4 2 0**
  333. *******
  334. *******
  335. *******
  336. *******
  337. *******
  338. *******")]
  339. [InlineData (
  340. "0 2 4",
  341. Alignment.End,
  342. Alignment.Start,
  343. TextDirection.RightLeft_BottomTop,
  344. @"
  345. **4 2 0
  346. *******
  347. *******
  348. *******
  349. *******
  350. *******
  351. *******")]
  352. [InlineData (
  353. "0 2 4",
  354. Alignment.Center,
  355. Alignment.Start,
  356. TextDirection.RightLeft_BottomTop,
  357. @"
  358. *4 2 0*
  359. *******
  360. *******
  361. *******
  362. *******
  363. *******
  364. *******")]
  365. [InlineData (
  366. "0 2 4",
  367. Alignment.Fill,
  368. Alignment.Start,
  369. TextDirection.RightLeft_BottomTop,
  370. @"
  371. 4 2 0
  372. *******
  373. *******
  374. *******
  375. *******
  376. *******
  377. *******")]
  378. [InlineData (
  379. "0 你 4",
  380. Alignment.Start,
  381. Alignment.Start,
  382. TextDirection.RightLeft_BottomTop,
  383. @"
  384. 4 你 0*
  385. *******
  386. *******
  387. *******
  388. *******
  389. *******
  390. *******")]
  391. [InlineData (
  392. "0 你 4",
  393. Alignment.End,
  394. Alignment.Start,
  395. TextDirection.RightLeft_BottomTop,
  396. @"
  397. *4 你 0
  398. *******
  399. *******
  400. *******
  401. *******
  402. *******
  403. *******")]
  404. [InlineData (
  405. "0 你 4",
  406. Alignment.Center,
  407. Alignment.Start,
  408. TextDirection.RightLeft_BottomTop,
  409. @"
  410. 4 你 0*
  411. *******
  412. *******
  413. *******
  414. *******
  415. *******
  416. *******")]
  417. [InlineData (
  418. "0 你 4",
  419. Alignment.Fill,
  420. Alignment.Start,
  421. TextDirection.RightLeft_BottomTop,
  422. @"
  423. 4 你 0
  424. *******
  425. *******
  426. *******
  427. *******
  428. *******
  429. *******")]
  430. // Horizontal with Alignment.End
  431. // LeftRight_TopBottom
  432. [InlineData (
  433. "0 2 4",
  434. Alignment.Start,
  435. Alignment.End,
  436. TextDirection.LeftRight_TopBottom,
  437. @"
  438. *******
  439. *******
  440. *******
  441. *******
  442. *******
  443. *******
  444. 0 2 4**")]
  445. [InlineData (
  446. "0 2 4",
  447. Alignment.End,
  448. Alignment.End,
  449. TextDirection.LeftRight_TopBottom,
  450. @"
  451. *******
  452. *******
  453. *******
  454. *******
  455. *******
  456. *******
  457. **0 2 4")]
  458. [InlineData (
  459. "0 2 4",
  460. Alignment.Center,
  461. Alignment.End,
  462. TextDirection.LeftRight_TopBottom,
  463. @"
  464. *******
  465. *******
  466. *******
  467. *******
  468. *******
  469. *******
  470. *0 2 4*")]
  471. [InlineData (
  472. "0 2 4",
  473. Alignment.Fill,
  474. Alignment.End,
  475. TextDirection.LeftRight_TopBottom,
  476. @"
  477. *******
  478. *******
  479. *******
  480. *******
  481. *******
  482. *******
  483. 0 2 4")]
  484. [InlineData (
  485. "0 你 4",
  486. Alignment.Start,
  487. Alignment.End,
  488. TextDirection.LeftRight_TopBottom,
  489. @"
  490. *******
  491. *******
  492. *******
  493. *******
  494. *******
  495. *******
  496. 0 你 4*")]
  497. [InlineData (
  498. "0 你 4",
  499. Alignment.End,
  500. Alignment.End,
  501. TextDirection.LeftRight_TopBottom,
  502. @"
  503. *******
  504. *******
  505. *******
  506. *******
  507. *******
  508. *******
  509. *0 你 4")]
  510. [InlineData (
  511. "0 你 4",
  512. Alignment.Center,
  513. Alignment.End,
  514. TextDirection.LeftRight_TopBottom,
  515. @"
  516. *******
  517. *******
  518. *******
  519. *******
  520. *******
  521. *******
  522. 0 你 4*")]
  523. [InlineData (
  524. "0 你 4",
  525. Alignment.Fill,
  526. Alignment.End,
  527. TextDirection.LeftRight_TopBottom,
  528. @"
  529. *******
  530. *******
  531. *******
  532. *******
  533. *******
  534. *******
  535. 0 你 4")]
  536. // LeftRight_BottomTop
  537. [InlineData (
  538. "0 2 4",
  539. Alignment.Start,
  540. Alignment.End,
  541. TextDirection.LeftRight_BottomTop,
  542. @"
  543. *******
  544. *******
  545. *******
  546. *******
  547. *******
  548. *******
  549. 0 2 4**")]
  550. [InlineData (
  551. "0 2 4",
  552. Alignment.End,
  553. Alignment.End,
  554. TextDirection.LeftRight_BottomTop,
  555. @"
  556. *******
  557. *******
  558. *******
  559. *******
  560. *******
  561. *******
  562. **0 2 4")]
  563. [InlineData (
  564. "0 2 4",
  565. Alignment.Center,
  566. Alignment.End,
  567. TextDirection.LeftRight_BottomTop,
  568. @"
  569. *******
  570. *******
  571. *******
  572. *******
  573. *******
  574. *******
  575. *0 2 4*")]
  576. [InlineData (
  577. "0 2 4",
  578. Alignment.Fill,
  579. Alignment.End,
  580. TextDirection.LeftRight_BottomTop,
  581. @"
  582. *******
  583. *******
  584. *******
  585. *******
  586. *******
  587. *******
  588. 0 2 4")]
  589. [InlineData (
  590. "0 你 4",
  591. Alignment.Start,
  592. Alignment.End,
  593. TextDirection.LeftRight_BottomTop,
  594. @"
  595. *******
  596. *******
  597. *******
  598. *******
  599. *******
  600. *******
  601. 0 你 4*")]
  602. [InlineData (
  603. "0 你 4",
  604. Alignment.End,
  605. Alignment.End,
  606. TextDirection.LeftRight_BottomTop,
  607. @"
  608. *******
  609. *******
  610. *******
  611. *******
  612. *******
  613. *******
  614. *0 你 4")]
  615. [InlineData (
  616. "0 你 4",
  617. Alignment.Center,
  618. Alignment.End,
  619. TextDirection.LeftRight_BottomTop,
  620. @"
  621. *******
  622. *******
  623. *******
  624. *******
  625. *******
  626. *******
  627. 0 你 4*")]
  628. [InlineData (
  629. "0 你 4",
  630. Alignment.Fill,
  631. Alignment.End,
  632. TextDirection.LeftRight_BottomTop,
  633. @"
  634. *******
  635. *******
  636. *******
  637. *******
  638. *******
  639. *******
  640. 0 你 4")]
  641. // RightLeft_TopBottom
  642. [InlineData (
  643. "0 2 4",
  644. Alignment.Start,
  645. Alignment.End,
  646. TextDirection.RightLeft_TopBottom,
  647. @"
  648. *******
  649. *******
  650. *******
  651. *******
  652. *******
  653. *******
  654. 4 2 0**")]
  655. [InlineData (
  656. "0 2 4",
  657. Alignment.End,
  658. Alignment.End,
  659. TextDirection.RightLeft_TopBottom,
  660. @"
  661. *******
  662. *******
  663. *******
  664. *******
  665. *******
  666. *******
  667. **4 2 0")]
  668. [InlineData (
  669. "0 2 4",
  670. Alignment.Center,
  671. Alignment.End,
  672. TextDirection.RightLeft_TopBottom,
  673. @"
  674. *******
  675. *******
  676. *******
  677. *******
  678. *******
  679. *******
  680. *4 2 0*")]
  681. [InlineData (
  682. "0 2 4",
  683. Alignment.Fill,
  684. Alignment.End,
  685. TextDirection.RightLeft_TopBottom,
  686. @"
  687. *******
  688. *******
  689. *******
  690. *******
  691. *******
  692. *******
  693. 4 2 0")]
  694. [InlineData (
  695. "0 你 4",
  696. Alignment.Start,
  697. Alignment.End,
  698. TextDirection.RightLeft_TopBottom,
  699. @"
  700. *******
  701. *******
  702. *******
  703. *******
  704. *******
  705. *******
  706. 4 你 0*")]
  707. [InlineData (
  708. "0 你 4",
  709. Alignment.End,
  710. Alignment.End,
  711. TextDirection.RightLeft_TopBottom,
  712. @"
  713. *******
  714. *******
  715. *******
  716. *******
  717. *******
  718. *******
  719. *4 你 0")]
  720. [InlineData (
  721. "0 你 4",
  722. Alignment.Center,
  723. Alignment.End,
  724. TextDirection.RightLeft_TopBottom,
  725. @"
  726. *******
  727. *******
  728. *******
  729. *******
  730. *******
  731. *******
  732. 4 你 0*")]
  733. [InlineData (
  734. "0 你 4",
  735. Alignment.Fill,
  736. Alignment.End,
  737. TextDirection.RightLeft_TopBottom,
  738. @"
  739. *******
  740. *******
  741. *******
  742. *******
  743. *******
  744. *******
  745. 4 你 0")]
  746. // RightLeft_BottomTop
  747. [InlineData (
  748. "0 2 4",
  749. Alignment.Start,
  750. Alignment.End,
  751. TextDirection.RightLeft_BottomTop,
  752. @"
  753. *******
  754. *******
  755. *******
  756. *******
  757. *******
  758. *******
  759. 4 2 0**")]
  760. [InlineData (
  761. "0 2 4",
  762. Alignment.End,
  763. Alignment.End,
  764. TextDirection.RightLeft_BottomTop,
  765. @"
  766. *******
  767. *******
  768. *******
  769. *******
  770. *******
  771. *******
  772. **4 2 0")]
  773. [InlineData (
  774. "0 2 4",
  775. Alignment.Center,
  776. Alignment.End,
  777. TextDirection.RightLeft_BottomTop,
  778. @"
  779. *******
  780. *******
  781. *******
  782. *******
  783. *******
  784. *******
  785. *4 2 0*")]
  786. [InlineData (
  787. "0 2 4",
  788. Alignment.Fill,
  789. Alignment.End,
  790. TextDirection.RightLeft_BottomTop,
  791. @"
  792. *******
  793. *******
  794. *******
  795. *******
  796. *******
  797. *******
  798. 4 2 0")]
  799. [InlineData (
  800. "0 你 4",
  801. Alignment.Start,
  802. Alignment.End,
  803. TextDirection.RightLeft_BottomTop,
  804. @"
  805. *******
  806. *******
  807. *******
  808. *******
  809. *******
  810. *******
  811. 4 你 0*")]
  812. [InlineData (
  813. "0 你 4",
  814. Alignment.End,
  815. Alignment.End,
  816. TextDirection.RightLeft_BottomTop,
  817. @"
  818. *******
  819. *******
  820. *******
  821. *******
  822. *******
  823. *******
  824. *4 你 0")]
  825. [InlineData (
  826. "0 你 4",
  827. Alignment.Center,
  828. Alignment.End,
  829. TextDirection.RightLeft_BottomTop,
  830. @"
  831. *******
  832. *******
  833. *******
  834. *******
  835. *******
  836. *******
  837. 4 你 0*")]
  838. [InlineData (
  839. "0 你 4",
  840. Alignment.Fill,
  841. Alignment.End,
  842. TextDirection.RightLeft_BottomTop,
  843. @"
  844. *******
  845. *******
  846. *******
  847. *******
  848. *******
  849. *******
  850. 4 你 0")]
  851. // Horizontal with alignment.Centered
  852. // LeftRight_TopBottom
  853. [InlineData (
  854. "0 2 4",
  855. Alignment.Start,
  856. Alignment.Center,
  857. TextDirection.LeftRight_TopBottom,
  858. @"
  859. *******
  860. *******
  861. *******
  862. 0 2 4**
  863. *******
  864. *******
  865. *******")]
  866. [InlineData (
  867. "0 2 4",
  868. Alignment.End,
  869. Alignment.Center,
  870. TextDirection.LeftRight_TopBottom,
  871. @"
  872. *******
  873. *******
  874. *******
  875. **0 2 4
  876. *******
  877. *******
  878. *******")]
  879. [InlineData (
  880. "0 2 4",
  881. Alignment.Center,
  882. Alignment.Center,
  883. TextDirection.LeftRight_TopBottom,
  884. @"
  885. *******
  886. *******
  887. *******
  888. *0 2 4*
  889. *******
  890. *******
  891. *******")]
  892. [InlineData (
  893. "0 2 4",
  894. Alignment.Fill,
  895. Alignment.Center,
  896. TextDirection.LeftRight_TopBottom,
  897. @"
  898. *******
  899. *******
  900. *******
  901. 0 2 4
  902. *******
  903. *******
  904. *******")]
  905. [InlineData (
  906. "0 你 4",
  907. Alignment.Start,
  908. Alignment.Center,
  909. TextDirection.LeftRight_TopBottom,
  910. @"
  911. *******
  912. *******
  913. *******
  914. 0 你 4*
  915. *******
  916. *******
  917. *******")]
  918. [InlineData (
  919. "0 你 4",
  920. Alignment.End,
  921. Alignment.Center,
  922. TextDirection.LeftRight_TopBottom,
  923. @"
  924. *******
  925. *******
  926. *******
  927. *0 你 4
  928. *******
  929. *******
  930. *******")]
  931. [InlineData (
  932. "0 你 4",
  933. Alignment.Center,
  934. Alignment.Center,
  935. TextDirection.LeftRight_TopBottom,
  936. @"
  937. *******
  938. *******
  939. *******
  940. 0 你 4*
  941. *******
  942. *******
  943. *******")]
  944. [InlineData (
  945. "0 你 4",
  946. Alignment.Fill,
  947. Alignment.Center,
  948. TextDirection.LeftRight_TopBottom,
  949. @"
  950. *******
  951. *******
  952. *******
  953. 0 你 4
  954. *******
  955. *******
  956. *******")]
  957. // LeftRight_BottomTop
  958. [InlineData (
  959. "0 2 4",
  960. Alignment.Start,
  961. Alignment.Center,
  962. TextDirection.LeftRight_BottomTop,
  963. @"
  964. *******
  965. *******
  966. *******
  967. 0 2 4**
  968. *******
  969. *******
  970. *******")]
  971. [InlineData (
  972. "0 2 4",
  973. Alignment.End,
  974. Alignment.Center,
  975. TextDirection.LeftRight_BottomTop,
  976. @"
  977. *******
  978. *******
  979. *******
  980. **0 2 4
  981. *******
  982. *******
  983. *******")]
  984. [InlineData (
  985. "0 2 4",
  986. Alignment.Center,
  987. Alignment.Center,
  988. TextDirection.LeftRight_BottomTop,
  989. @"
  990. *******
  991. *******
  992. *******
  993. *0 2 4*
  994. *******
  995. *******
  996. *******")]
  997. [InlineData (
  998. "0 2 4",
  999. Alignment.Fill,
  1000. Alignment.Center,
  1001. TextDirection.LeftRight_BottomTop,
  1002. @"
  1003. *******
  1004. *******
  1005. *******
  1006. 0 2 4
  1007. *******
  1008. *******
  1009. *******")]
  1010. [InlineData (
  1011. "0 你 4",
  1012. Alignment.Start,
  1013. Alignment.Center,
  1014. TextDirection.LeftRight_BottomTop,
  1015. @"
  1016. *******
  1017. *******
  1018. *******
  1019. 0 你 4*
  1020. *******
  1021. *******
  1022. *******")]
  1023. [InlineData (
  1024. "0 你 4",
  1025. Alignment.End,
  1026. Alignment.Center,
  1027. TextDirection.LeftRight_BottomTop,
  1028. @"
  1029. *******
  1030. *******
  1031. *******
  1032. *0 你 4
  1033. *******
  1034. *******
  1035. *******")]
  1036. [InlineData (
  1037. "0 你 4",
  1038. Alignment.Center,
  1039. Alignment.Center,
  1040. TextDirection.LeftRight_BottomTop,
  1041. @"
  1042. *******
  1043. *******
  1044. *******
  1045. 0 你 4*
  1046. *******
  1047. *******
  1048. *******")]
  1049. [InlineData (
  1050. "0 你 4",
  1051. Alignment.Fill,
  1052. Alignment.Center,
  1053. TextDirection.LeftRight_BottomTop,
  1054. @"
  1055. *******
  1056. *******
  1057. *******
  1058. 0 你 4
  1059. *******
  1060. *******
  1061. *******")]
  1062. // RightLeft_TopBottom
  1063. [InlineData (
  1064. "0 2 4",
  1065. Alignment.Start,
  1066. Alignment.Center,
  1067. TextDirection.RightLeft_TopBottom,
  1068. @"
  1069. *******
  1070. *******
  1071. *******
  1072. 4 2 0**
  1073. *******
  1074. *******
  1075. *******")]
  1076. [InlineData (
  1077. "0 2 4",
  1078. Alignment.End,
  1079. Alignment.Center,
  1080. TextDirection.RightLeft_TopBottom,
  1081. @"
  1082. *******
  1083. *******
  1084. *******
  1085. **4 2 0
  1086. *******
  1087. *******
  1088. *******")]
  1089. [InlineData (
  1090. "0 2 4",
  1091. Alignment.Center,
  1092. Alignment.Center,
  1093. TextDirection.RightLeft_TopBottom,
  1094. @"
  1095. *******
  1096. *******
  1097. *******
  1098. *4 2 0*
  1099. *******
  1100. *******
  1101. *******")]
  1102. [InlineData (
  1103. "0 2 4",
  1104. Alignment.Fill,
  1105. Alignment.Center,
  1106. TextDirection.RightLeft_TopBottom,
  1107. @"
  1108. *******
  1109. *******
  1110. *******
  1111. 4 2 0
  1112. *******
  1113. *******
  1114. *******")]
  1115. [InlineData (
  1116. "0 你 4",
  1117. Alignment.Start,
  1118. Alignment.Center,
  1119. TextDirection.RightLeft_TopBottom,
  1120. @"
  1121. *******
  1122. *******
  1123. *******
  1124. 4 你 0*
  1125. *******
  1126. *******
  1127. *******")]
  1128. [InlineData (
  1129. "0 你 4",
  1130. Alignment.End,
  1131. Alignment.Center,
  1132. TextDirection.RightLeft_TopBottom,
  1133. @"
  1134. *******
  1135. *******
  1136. *******
  1137. *4 你 0
  1138. *******
  1139. *******
  1140. *******")]
  1141. [InlineData (
  1142. "0 你 4",
  1143. Alignment.Center,
  1144. Alignment.Center,
  1145. TextDirection.RightLeft_TopBottom,
  1146. @"
  1147. *******
  1148. *******
  1149. *******
  1150. 4 你 0*
  1151. *******
  1152. *******
  1153. *******")]
  1154. [InlineData (
  1155. "0 你 4",
  1156. Alignment.Fill,
  1157. Alignment.Center,
  1158. TextDirection.RightLeft_TopBottom,
  1159. @"
  1160. *******
  1161. *******
  1162. *******
  1163. 4 你 0
  1164. *******
  1165. *******
  1166. *******")]
  1167. // RightLeft_BottomTop
  1168. [InlineData (
  1169. "0 2 4",
  1170. Alignment.Start,
  1171. Alignment.Center,
  1172. TextDirection.RightLeft_BottomTop,
  1173. @"
  1174. *******
  1175. *******
  1176. *******
  1177. 4 2 0**
  1178. *******
  1179. *******
  1180. *******")]
  1181. [InlineData (
  1182. "0 2 4",
  1183. Alignment.End,
  1184. Alignment.Center,
  1185. TextDirection.RightLeft_BottomTop,
  1186. @"
  1187. *******
  1188. *******
  1189. *******
  1190. **4 2 0
  1191. *******
  1192. *******
  1193. *******")]
  1194. [InlineData (
  1195. "0 2 4",
  1196. Alignment.Center,
  1197. Alignment.Center,
  1198. TextDirection.RightLeft_BottomTop,
  1199. @"
  1200. *******
  1201. *******
  1202. *******
  1203. *4 2 0*
  1204. *******
  1205. *******
  1206. *******")]
  1207. [InlineData (
  1208. "0 2 4",
  1209. Alignment.Fill,
  1210. Alignment.Center,
  1211. TextDirection.RightLeft_BottomTop,
  1212. @"
  1213. *******
  1214. *******
  1215. *******
  1216. 4 2 0
  1217. *******
  1218. *******
  1219. *******")]
  1220. [InlineData (
  1221. "0 你 4",
  1222. Alignment.Start,
  1223. Alignment.Center,
  1224. TextDirection.RightLeft_BottomTop,
  1225. @"
  1226. *******
  1227. *******
  1228. *******
  1229. 4 你 0*
  1230. *******
  1231. *******
  1232. *******")]
  1233. [InlineData (
  1234. "0 你 4",
  1235. Alignment.End,
  1236. Alignment.Center,
  1237. TextDirection.RightLeft_BottomTop,
  1238. @"
  1239. *******
  1240. *******
  1241. *******
  1242. *4 你 0
  1243. *******
  1244. *******
  1245. *******")]
  1246. [InlineData (
  1247. "0 你 4",
  1248. Alignment.Center,
  1249. Alignment.Center,
  1250. TextDirection.RightLeft_BottomTop,
  1251. @"
  1252. *******
  1253. *******
  1254. *******
  1255. 4 你 0*
  1256. *******
  1257. *******
  1258. *******")]
  1259. [InlineData (
  1260. "0 你 4",
  1261. Alignment.Fill,
  1262. Alignment.Center,
  1263. TextDirection.RightLeft_BottomTop,
  1264. @"
  1265. *******
  1266. *******
  1267. *******
  1268. 4 你 0
  1269. *******
  1270. *******
  1271. *******")]
  1272. // Horizontal with alignment.Justified
  1273. // LeftRight_TopBottom
  1274. [InlineData (
  1275. "0 2 4",
  1276. Alignment.Start,
  1277. Alignment.Fill,
  1278. TextDirection.LeftRight_TopBottom,
  1279. @"
  1280. 0 2 4**
  1281. *******
  1282. *******
  1283. *******
  1284. *******
  1285. *******
  1286. *******")]
  1287. [InlineData (
  1288. "0 2 4",
  1289. Alignment.End,
  1290. Alignment.Fill,
  1291. TextDirection.LeftRight_TopBottom,
  1292. @"
  1293. **0 2 4
  1294. *******
  1295. *******
  1296. *******
  1297. *******
  1298. *******
  1299. *******")]
  1300. [InlineData (
  1301. "0 2 4",
  1302. Alignment.Center,
  1303. Alignment.Fill,
  1304. TextDirection.LeftRight_TopBottom,
  1305. @"
  1306. *0 2 4*
  1307. *******
  1308. *******
  1309. *******
  1310. *******
  1311. *******
  1312. *******")]
  1313. [InlineData (
  1314. "0 2 4",
  1315. Alignment.Fill,
  1316. Alignment.Fill,
  1317. TextDirection.LeftRight_TopBottom,
  1318. @"
  1319. 0 2 4
  1320. *******
  1321. *******
  1322. *******
  1323. *******
  1324. *******
  1325. *******")]
  1326. [InlineData (
  1327. "0 你 4",
  1328. Alignment.Start,
  1329. Alignment.Fill,
  1330. TextDirection.LeftRight_TopBottom,
  1331. @"
  1332. 0 你 4*
  1333. *******
  1334. *******
  1335. *******
  1336. *******
  1337. *******
  1338. *******")]
  1339. [InlineData (
  1340. "0 你 4",
  1341. Alignment.End,
  1342. Alignment.Fill,
  1343. TextDirection.LeftRight_TopBottom,
  1344. @"
  1345. *0 你 4
  1346. *******
  1347. *******
  1348. *******
  1349. *******
  1350. *******
  1351. *******")]
  1352. [InlineData (
  1353. "0 你 4",
  1354. Alignment.Center,
  1355. Alignment.Fill,
  1356. TextDirection.LeftRight_TopBottom,
  1357. @"
  1358. 0 你 4*
  1359. *******
  1360. *******
  1361. *******
  1362. *******
  1363. *******
  1364. *******")]
  1365. [InlineData (
  1366. "0 你 4",
  1367. Alignment.Fill,
  1368. Alignment.Fill,
  1369. TextDirection.LeftRight_TopBottom,
  1370. @"
  1371. 0 你 4
  1372. *******
  1373. *******
  1374. *******
  1375. *******
  1376. *******
  1377. *******")]
  1378. // LeftRight_BottomTop
  1379. [InlineData (
  1380. "0 2 4",
  1381. Alignment.Start,
  1382. Alignment.Fill,
  1383. TextDirection.LeftRight_BottomTop,
  1384. @"
  1385. 0 2 4**
  1386. *******
  1387. *******
  1388. *******
  1389. *******
  1390. *******
  1391. *******")]
  1392. [InlineData (
  1393. "0 2 4",
  1394. Alignment.End,
  1395. Alignment.Fill,
  1396. TextDirection.LeftRight_BottomTop,
  1397. @"
  1398. **0 2 4
  1399. *******
  1400. *******
  1401. *******
  1402. *******
  1403. *******
  1404. *******")]
  1405. [InlineData (
  1406. "0 2 4",
  1407. Alignment.Center,
  1408. Alignment.Fill,
  1409. TextDirection.LeftRight_BottomTop,
  1410. @"
  1411. *0 2 4*
  1412. *******
  1413. *******
  1414. *******
  1415. *******
  1416. *******
  1417. *******")]
  1418. [InlineData (
  1419. "0 2 4",
  1420. Alignment.Fill,
  1421. Alignment.Fill,
  1422. TextDirection.LeftRight_BottomTop,
  1423. @"
  1424. 0 2 4
  1425. *******
  1426. *******
  1427. *******
  1428. *******
  1429. *******
  1430. *******")]
  1431. [InlineData (
  1432. "0 你 4",
  1433. Alignment.Start,
  1434. Alignment.Fill,
  1435. TextDirection.LeftRight_BottomTop,
  1436. @"
  1437. 0 你 4*
  1438. *******
  1439. *******
  1440. *******
  1441. *******
  1442. *******
  1443. *******")]
  1444. [InlineData (
  1445. "0 你 4",
  1446. Alignment.End,
  1447. Alignment.Fill,
  1448. TextDirection.LeftRight_BottomTop,
  1449. @"
  1450. *0 你 4
  1451. *******
  1452. *******
  1453. *******
  1454. *******
  1455. *******
  1456. *******")]
  1457. [InlineData (
  1458. "0 你 4",
  1459. Alignment.Center,
  1460. Alignment.Fill,
  1461. TextDirection.LeftRight_BottomTop,
  1462. @"
  1463. 0 你 4*
  1464. *******
  1465. *******
  1466. *******
  1467. *******
  1468. *******
  1469. *******")]
  1470. [InlineData (
  1471. "0 你 4",
  1472. Alignment.Fill,
  1473. Alignment.Fill,
  1474. TextDirection.LeftRight_BottomTop,
  1475. @"
  1476. 0 你 4
  1477. *******
  1478. *******
  1479. *******
  1480. *******
  1481. *******
  1482. *******")]
  1483. // RightLeft_TopBottom
  1484. [InlineData (
  1485. "0 2 4",
  1486. Alignment.Start,
  1487. Alignment.Fill,
  1488. TextDirection.RightLeft_TopBottom,
  1489. @"
  1490. 4 2 0**
  1491. *******
  1492. *******
  1493. *******
  1494. *******
  1495. *******
  1496. *******")]
  1497. [InlineData (
  1498. "0 2 4",
  1499. Alignment.End,
  1500. Alignment.Fill,
  1501. TextDirection.RightLeft_TopBottom,
  1502. @"
  1503. **4 2 0
  1504. *******
  1505. *******
  1506. *******
  1507. *******
  1508. *******
  1509. *******")]
  1510. [InlineData (
  1511. "0 2 4",
  1512. Alignment.Center,
  1513. Alignment.Fill,
  1514. TextDirection.RightLeft_TopBottom,
  1515. @"
  1516. *4 2 0*
  1517. *******
  1518. *******
  1519. *******
  1520. *******
  1521. *******
  1522. *******")]
  1523. [InlineData (
  1524. "0 2 4",
  1525. Alignment.Fill,
  1526. Alignment.Fill,
  1527. TextDirection.RightLeft_TopBottom,
  1528. @"
  1529. 4 2 0
  1530. *******
  1531. *******
  1532. *******
  1533. *******
  1534. *******
  1535. *******")]
  1536. [InlineData (
  1537. "0 你 4",
  1538. Alignment.Start,
  1539. Alignment.Fill,
  1540. TextDirection.RightLeft_TopBottom,
  1541. @"
  1542. 4 你 0*
  1543. *******
  1544. *******
  1545. *******
  1546. *******
  1547. *******
  1548. *******")]
  1549. [InlineData (
  1550. "0 你 4",
  1551. Alignment.End,
  1552. Alignment.Fill,
  1553. TextDirection.RightLeft_TopBottom,
  1554. @"
  1555. *4 你 0
  1556. *******
  1557. *******
  1558. *******
  1559. *******
  1560. *******
  1561. *******")]
  1562. [InlineData (
  1563. "0 你 4",
  1564. Alignment.Center,
  1565. Alignment.Fill,
  1566. TextDirection.RightLeft_TopBottom,
  1567. @"
  1568. 4 你 0*
  1569. *******
  1570. *******
  1571. *******
  1572. *******
  1573. *******
  1574. *******")]
  1575. [InlineData (
  1576. "0 你 4",
  1577. Alignment.Fill,
  1578. Alignment.Fill,
  1579. TextDirection.RightLeft_TopBottom,
  1580. @"
  1581. 4 你 0
  1582. *******
  1583. *******
  1584. *******
  1585. *******
  1586. *******
  1587. *******")]
  1588. // RightLeft_BottomTop
  1589. [InlineData (
  1590. "0 2 4",
  1591. Alignment.Start,
  1592. Alignment.Fill,
  1593. TextDirection.RightLeft_BottomTop,
  1594. @"
  1595. 4 2 0**
  1596. *******
  1597. *******
  1598. *******
  1599. *******
  1600. *******
  1601. *******")]
  1602. [InlineData (
  1603. "0 2 4",
  1604. Alignment.End,
  1605. Alignment.Fill,
  1606. TextDirection.RightLeft_BottomTop,
  1607. @"
  1608. **4 2 0
  1609. *******
  1610. *******
  1611. *******
  1612. *******
  1613. *******
  1614. *******")]
  1615. [InlineData (
  1616. "0 2 4",
  1617. Alignment.Center,
  1618. Alignment.Fill,
  1619. TextDirection.RightLeft_BottomTop,
  1620. @"
  1621. *4 2 0*
  1622. *******
  1623. *******
  1624. *******
  1625. *******
  1626. *******
  1627. *******")]
  1628. [InlineData (
  1629. "0 2 4",
  1630. Alignment.Fill,
  1631. Alignment.Fill,
  1632. TextDirection.RightLeft_BottomTop,
  1633. @"
  1634. 4 2 0
  1635. *******
  1636. *******
  1637. *******
  1638. *******
  1639. *******
  1640. *******")]
  1641. [InlineData (
  1642. "0 你 4",
  1643. Alignment.Start,
  1644. Alignment.Fill,
  1645. TextDirection.RightLeft_BottomTop,
  1646. @"
  1647. 4 你 0*
  1648. *******
  1649. *******
  1650. *******
  1651. *******
  1652. *******
  1653. *******")]
  1654. [InlineData (
  1655. "0 你 4",
  1656. Alignment.End,
  1657. Alignment.Fill,
  1658. TextDirection.RightLeft_BottomTop,
  1659. @"
  1660. *4 你 0
  1661. *******
  1662. *******
  1663. *******
  1664. *******
  1665. *******
  1666. *******")]
  1667. [InlineData (
  1668. "0 你 4",
  1669. Alignment.Center,
  1670. Alignment.Fill,
  1671. TextDirection.RightLeft_BottomTop,
  1672. @"
  1673. 4 你 0*
  1674. *******
  1675. *******
  1676. *******
  1677. *******
  1678. *******
  1679. *******")]
  1680. [InlineData (
  1681. "0 你 4",
  1682. Alignment.Fill,
  1683. Alignment.Fill,
  1684. TextDirection.RightLeft_BottomTop,
  1685. @"
  1686. 4 你 0
  1687. *******
  1688. *******
  1689. *******
  1690. *******
  1691. *******
  1692. *******")]
  1693. // Vertical with alignment.Left
  1694. // TopBottom_LeftRight
  1695. [InlineData (
  1696. "0 2 4",
  1697. Alignment.Start,
  1698. Alignment.Start,
  1699. TextDirection.TopBottom_LeftRight,
  1700. @"
  1701. 0******
  1702. ******
  1703. 2******
  1704. ******
  1705. 4******
  1706. *******
  1707. *******")]
  1708. [InlineData (
  1709. "0 2 4",
  1710. Alignment.Start,
  1711. Alignment.End,
  1712. TextDirection.TopBottom_LeftRight,
  1713. @"
  1714. *******
  1715. *******
  1716. 0******
  1717. ******
  1718. 2******
  1719. ******
  1720. 4******")]
  1721. [InlineData (
  1722. "0 2 4",
  1723. Alignment.Start,
  1724. Alignment.Center,
  1725. TextDirection.TopBottom_LeftRight,
  1726. @"
  1727. *******
  1728. 0******
  1729. ******
  1730. 2******
  1731. ******
  1732. 4******
  1733. *******")]
  1734. [InlineData (
  1735. "0 2 4",
  1736. Alignment.Start,
  1737. Alignment.Fill,
  1738. TextDirection.TopBottom_LeftRight,
  1739. @"
  1740. 0******
  1741. ******
  1742. ******
  1743. 2******
  1744. ******
  1745. ******
  1746. 4******")]
  1747. [InlineData (
  1748. "0 你 4",
  1749. Alignment.Start,
  1750. Alignment.Start,
  1751. TextDirection.TopBottom_LeftRight,
  1752. @"
  1753. 0******
  1754. ******
  1755. 你*****
  1756. ******
  1757. 4******
  1758. *******
  1759. *******")]
  1760. [InlineData (
  1761. "0 你 4",
  1762. Alignment.Start,
  1763. Alignment.End,
  1764. TextDirection.TopBottom_LeftRight,
  1765. @"
  1766. *******
  1767. *******
  1768. 0******
  1769. ******
  1770. 你*****
  1771. ******
  1772. 4******")]
  1773. [InlineData (
  1774. "0 你 4",
  1775. Alignment.Start,
  1776. Alignment.Center,
  1777. TextDirection.TopBottom_LeftRight,
  1778. @"
  1779. *******
  1780. 0******
  1781. ******
  1782. 你*****
  1783. ******
  1784. 4******
  1785. *******")]
  1786. [InlineData (
  1787. "0 你 4",
  1788. Alignment.Start,
  1789. Alignment.Fill,
  1790. TextDirection.TopBottom_LeftRight,
  1791. @"
  1792. 0******
  1793. ******
  1794. ******
  1795. 你*****
  1796. ******
  1797. ******
  1798. 4******")]
  1799. // TopBottom_RightLeft
  1800. [InlineData (
  1801. "0 2 4",
  1802. Alignment.Start,
  1803. Alignment.Start,
  1804. TextDirection.TopBottom_RightLeft,
  1805. @"
  1806. 0******
  1807. ******
  1808. 2******
  1809. ******
  1810. 4******
  1811. *******
  1812. *******")]
  1813. [InlineData (
  1814. "0 2 4",
  1815. Alignment.Start,
  1816. Alignment.End,
  1817. TextDirection.TopBottom_RightLeft,
  1818. @"
  1819. *******
  1820. *******
  1821. 0******
  1822. ******
  1823. 2******
  1824. ******
  1825. 4******")]
  1826. [InlineData (
  1827. "0 2 4",
  1828. Alignment.Start,
  1829. Alignment.Center,
  1830. TextDirection.TopBottom_RightLeft,
  1831. @"
  1832. *******
  1833. 0******
  1834. ******
  1835. 2******
  1836. ******
  1837. 4******
  1838. *******")]
  1839. [InlineData (
  1840. "0 2 4",
  1841. Alignment.Start,
  1842. Alignment.Fill,
  1843. TextDirection.TopBottom_RightLeft,
  1844. @"
  1845. 0******
  1846. ******
  1847. ******
  1848. 2******
  1849. ******
  1850. ******
  1851. 4******")]
  1852. [InlineData (
  1853. "0 你 4",
  1854. Alignment.Start,
  1855. Alignment.Start,
  1856. TextDirection.TopBottom_RightLeft,
  1857. @"
  1858. 0******
  1859. ******
  1860. 你*****
  1861. ******
  1862. 4******
  1863. *******
  1864. *******")]
  1865. [InlineData (
  1866. "0 你 4",
  1867. Alignment.Start,
  1868. Alignment.End,
  1869. TextDirection.TopBottom_RightLeft,
  1870. @"
  1871. *******
  1872. *******
  1873. 0******
  1874. ******
  1875. 你*****
  1876. ******
  1877. 4******")]
  1878. [InlineData (
  1879. "0 你 4",
  1880. Alignment.Start,
  1881. Alignment.Center,
  1882. TextDirection.TopBottom_RightLeft,
  1883. @"
  1884. *******
  1885. 0******
  1886. ******
  1887. 你*****
  1888. ******
  1889. 4******
  1890. *******")]
  1891. [InlineData (
  1892. "0 你 4",
  1893. Alignment.Start,
  1894. Alignment.Fill,
  1895. TextDirection.TopBottom_RightLeft,
  1896. @"
  1897. 0******
  1898. ******
  1899. ******
  1900. 你*****
  1901. ******
  1902. ******
  1903. 4******")]
  1904. // BottomTop_LeftRight
  1905. [InlineData (
  1906. "0 2 4",
  1907. Alignment.Start,
  1908. Alignment.Start,
  1909. TextDirection.BottomTop_LeftRight,
  1910. @"
  1911. 4******
  1912. ******
  1913. 2******
  1914. ******
  1915. 0******
  1916. *******
  1917. *******")]
  1918. [InlineData (
  1919. "0 2 4",
  1920. Alignment.Start,
  1921. Alignment.End,
  1922. TextDirection.BottomTop_LeftRight,
  1923. @"
  1924. *******
  1925. *******
  1926. 4******
  1927. ******
  1928. 2******
  1929. ******
  1930. 0******")]
  1931. [InlineData (
  1932. "0 2 4",
  1933. Alignment.Start,
  1934. Alignment.Center,
  1935. TextDirection.BottomTop_LeftRight,
  1936. @"
  1937. *******
  1938. 4******
  1939. ******
  1940. 2******
  1941. ******
  1942. 0******
  1943. *******")]
  1944. [InlineData (
  1945. "0 2 4",
  1946. Alignment.Start,
  1947. Alignment.Fill,
  1948. TextDirection.BottomTop_LeftRight,
  1949. @"
  1950. 4******
  1951. ******
  1952. ******
  1953. 2******
  1954. ******
  1955. ******
  1956. 0******")]
  1957. [InlineData (
  1958. "0 你 4",
  1959. Alignment.Start,
  1960. Alignment.Start,
  1961. TextDirection.BottomTop_LeftRight,
  1962. @"
  1963. 4******
  1964. ******
  1965. 你*****
  1966. ******
  1967. 0******
  1968. *******
  1969. *******")]
  1970. [InlineData (
  1971. "0 你 4",
  1972. Alignment.Start,
  1973. Alignment.End,
  1974. TextDirection.BottomTop_LeftRight,
  1975. @"
  1976. *******
  1977. *******
  1978. 4******
  1979. ******
  1980. 你*****
  1981. ******
  1982. 0******")]
  1983. [InlineData (
  1984. "0 你 4",
  1985. Alignment.Start,
  1986. Alignment.Center,
  1987. TextDirection.BottomTop_LeftRight,
  1988. @"
  1989. *******
  1990. 4******
  1991. ******
  1992. 你*****
  1993. ******
  1994. 0******
  1995. *******")]
  1996. [InlineData (
  1997. "0 你 4",
  1998. Alignment.Start,
  1999. Alignment.Fill,
  2000. TextDirection.BottomTop_LeftRight,
  2001. @"
  2002. 4******
  2003. ******
  2004. ******
  2005. 你*****
  2006. ******
  2007. ******
  2008. 0******")]
  2009. // BottomTop_RightLeft
  2010. [InlineData (
  2011. "0 2 4",
  2012. Alignment.Start,
  2013. Alignment.Start,
  2014. TextDirection.BottomTop_RightLeft,
  2015. @"
  2016. 4******
  2017. ******
  2018. 2******
  2019. ******
  2020. 0******
  2021. *******
  2022. *******")]
  2023. [InlineData (
  2024. "0 2 4",
  2025. Alignment.Start,
  2026. Alignment.End,
  2027. TextDirection.BottomTop_RightLeft,
  2028. @"
  2029. *******
  2030. *******
  2031. 4******
  2032. ******
  2033. 2******
  2034. ******
  2035. 0******")]
  2036. [InlineData (
  2037. "0 2 4",
  2038. Alignment.Start,
  2039. Alignment.Center,
  2040. TextDirection.BottomTop_RightLeft,
  2041. @"
  2042. *******
  2043. 4******
  2044. ******
  2045. 2******
  2046. ******
  2047. 0******
  2048. *******")]
  2049. [InlineData (
  2050. "0 2 4",
  2051. Alignment.Start,
  2052. Alignment.Fill,
  2053. TextDirection.BottomTop_RightLeft,
  2054. @"
  2055. 4******
  2056. ******
  2057. ******
  2058. 2******
  2059. ******
  2060. ******
  2061. 0******")]
  2062. [InlineData (
  2063. "0 你 4",
  2064. Alignment.Start,
  2065. Alignment.Start,
  2066. TextDirection.BottomTop_RightLeft,
  2067. @"
  2068. 4******
  2069. ******
  2070. 你*****
  2071. ******
  2072. 0******
  2073. *******
  2074. *******")]
  2075. [InlineData (
  2076. "0 你 4",
  2077. Alignment.Start,
  2078. Alignment.End,
  2079. TextDirection.BottomTop_RightLeft,
  2080. @"
  2081. *******
  2082. *******
  2083. 4******
  2084. ******
  2085. 你*****
  2086. ******
  2087. 0******")]
  2088. [InlineData (
  2089. "0 你 4",
  2090. Alignment.Start,
  2091. Alignment.Center,
  2092. TextDirection.BottomTop_RightLeft,
  2093. @"
  2094. *******
  2095. 4******
  2096. ******
  2097. 你*****
  2098. ******
  2099. 0******
  2100. *******")]
  2101. [InlineData (
  2102. "0 你 4",
  2103. Alignment.Start,
  2104. Alignment.Fill,
  2105. TextDirection.BottomTop_RightLeft,
  2106. @"
  2107. 4******
  2108. ******
  2109. ******
  2110. 你*****
  2111. ******
  2112. ******
  2113. 0******")]
  2114. // Vertical with alignment.Right
  2115. // TopBottom_LeftRight
  2116. [InlineData (
  2117. "0 2 4",
  2118. Alignment.End,
  2119. Alignment.Start,
  2120. TextDirection.TopBottom_LeftRight,
  2121. @"
  2122. ******0
  2123. ******
  2124. ******2
  2125. ******
  2126. ******4
  2127. *******
  2128. *******")]
  2129. [InlineData (
  2130. "0 2 4",
  2131. Alignment.End,
  2132. Alignment.End,
  2133. TextDirection.TopBottom_LeftRight,
  2134. @"
  2135. *******
  2136. *******
  2137. ******0
  2138. ******
  2139. ******2
  2140. ******
  2141. ******4")]
  2142. [InlineData (
  2143. "0 2 4",
  2144. Alignment.End,
  2145. Alignment.Center,
  2146. TextDirection.TopBottom_LeftRight,
  2147. @"
  2148. *******
  2149. ******0
  2150. ******
  2151. ******2
  2152. ******
  2153. ******4
  2154. *******")]
  2155. [InlineData (
  2156. "0 2 4",
  2157. Alignment.End,
  2158. Alignment.Fill,
  2159. TextDirection.TopBottom_LeftRight,
  2160. @"
  2161. ******0
  2162. ******
  2163. ******
  2164. ******2
  2165. ******
  2166. ******
  2167. ******4")]
  2168. [InlineData (
  2169. "0 你 4",
  2170. Alignment.End,
  2171. Alignment.Start,
  2172. TextDirection.TopBottom_LeftRight,
  2173. @"
  2174. *****0*
  2175. ***** *
  2176. *****你
  2177. ***** *
  2178. *****4*
  2179. *******
  2180. *******")]
  2181. [InlineData (
  2182. "0 你 4",
  2183. Alignment.End,
  2184. Alignment.End,
  2185. TextDirection.TopBottom_LeftRight,
  2186. @"
  2187. *******
  2188. *******
  2189. *****0*
  2190. ***** *
  2191. *****你
  2192. ***** *
  2193. *****4*")]
  2194. [InlineData (
  2195. "0 你 4",
  2196. Alignment.End,
  2197. Alignment.Center,
  2198. TextDirection.TopBottom_LeftRight,
  2199. @"
  2200. *******
  2201. *****0*
  2202. ***** *
  2203. *****你
  2204. ***** *
  2205. *****4*
  2206. *******")]
  2207. [InlineData (
  2208. "0 你 4",
  2209. Alignment.End,
  2210. Alignment.Fill,
  2211. TextDirection.TopBottom_LeftRight,
  2212. @"
  2213. *****0*
  2214. ***** *
  2215. ***** *
  2216. *****你
  2217. ***** *
  2218. ***** *
  2219. *****4*")]
  2220. // TopBottom_RightLeft
  2221. [InlineData (
  2222. "0 2 4",
  2223. Alignment.End,
  2224. Alignment.Start,
  2225. TextDirection.TopBottom_RightLeft,
  2226. @"
  2227. ******0
  2228. ******
  2229. ******2
  2230. ******
  2231. ******4
  2232. *******
  2233. *******")]
  2234. [InlineData (
  2235. "0 2 4",
  2236. Alignment.End,
  2237. Alignment.End,
  2238. TextDirection.TopBottom_RightLeft,
  2239. @"
  2240. *******
  2241. *******
  2242. ******0
  2243. ******
  2244. ******2
  2245. ******
  2246. ******4")]
  2247. [InlineData (
  2248. "0 2 4",
  2249. Alignment.End,
  2250. Alignment.Center,
  2251. TextDirection.TopBottom_RightLeft,
  2252. @"
  2253. *******
  2254. ******0
  2255. ******
  2256. ******2
  2257. ******
  2258. ******4
  2259. *******")]
  2260. [InlineData (
  2261. "0 2 4",
  2262. Alignment.End,
  2263. Alignment.Fill,
  2264. TextDirection.TopBottom_RightLeft,
  2265. @"
  2266. ******0
  2267. ******
  2268. ******
  2269. ******2
  2270. ******
  2271. ******
  2272. ******4")]
  2273. [InlineData (
  2274. "0 你 4",
  2275. Alignment.End,
  2276. Alignment.Start,
  2277. TextDirection.TopBottom_RightLeft,
  2278. @"
  2279. *****0*
  2280. ***** *
  2281. *****你
  2282. ***** *
  2283. *****4*
  2284. *******
  2285. *******")]
  2286. [InlineData (
  2287. "0 你 4",
  2288. Alignment.End,
  2289. Alignment.End,
  2290. TextDirection.TopBottom_RightLeft,
  2291. @"
  2292. *******
  2293. *******
  2294. *****0*
  2295. ***** *
  2296. *****你
  2297. ***** *
  2298. *****4*")]
  2299. [InlineData (
  2300. "0 你 4",
  2301. Alignment.End,
  2302. Alignment.Center,
  2303. TextDirection.TopBottom_RightLeft,
  2304. @"
  2305. *******
  2306. *****0*
  2307. ***** *
  2308. *****你
  2309. ***** *
  2310. *****4*
  2311. *******")]
  2312. [InlineData (
  2313. "0 你 4",
  2314. Alignment.End,
  2315. Alignment.Fill,
  2316. TextDirection.TopBottom_RightLeft,
  2317. @"
  2318. *****0*
  2319. ***** *
  2320. ***** *
  2321. *****你
  2322. ***** *
  2323. ***** *
  2324. *****4*")]
  2325. // BottomTop_LeftRight
  2326. [InlineData (
  2327. "0 2 4",
  2328. Alignment.End,
  2329. Alignment.Start,
  2330. TextDirection.BottomTop_LeftRight,
  2331. @"
  2332. ******4
  2333. ******
  2334. ******2
  2335. ******
  2336. ******0
  2337. *******
  2338. *******")]
  2339. [InlineData (
  2340. "0 2 4",
  2341. Alignment.End,
  2342. Alignment.End,
  2343. TextDirection.BottomTop_LeftRight,
  2344. @"
  2345. *******
  2346. *******
  2347. ******4
  2348. ******
  2349. ******2
  2350. ******
  2351. ******0")]
  2352. [InlineData (
  2353. "0 2 4",
  2354. Alignment.End,
  2355. Alignment.Center,
  2356. TextDirection.BottomTop_LeftRight,
  2357. @"
  2358. *******
  2359. ******4
  2360. ******
  2361. ******2
  2362. ******
  2363. ******0
  2364. *******")]
  2365. [InlineData (
  2366. "0 2 4",
  2367. Alignment.End,
  2368. Alignment.Fill,
  2369. TextDirection.BottomTop_LeftRight,
  2370. @"
  2371. ******4
  2372. ******
  2373. ******
  2374. ******2
  2375. ******
  2376. ******
  2377. ******0")]
  2378. [InlineData (
  2379. "0 你 4",
  2380. Alignment.End,
  2381. Alignment.Start,
  2382. TextDirection.BottomTop_LeftRight,
  2383. @"
  2384. *****4*
  2385. ***** *
  2386. *****你
  2387. ***** *
  2388. *****0*
  2389. *******
  2390. *******")]
  2391. [InlineData (
  2392. "0 你 4",
  2393. Alignment.End,
  2394. Alignment.End,
  2395. TextDirection.BottomTop_LeftRight,
  2396. @"
  2397. *******
  2398. *******
  2399. *****4*
  2400. ***** *
  2401. *****你
  2402. ***** *
  2403. *****0*")]
  2404. [InlineData (
  2405. "0 你 4",
  2406. Alignment.End,
  2407. Alignment.Center,
  2408. TextDirection.BottomTop_LeftRight,
  2409. @"
  2410. *******
  2411. *****4*
  2412. ***** *
  2413. *****你
  2414. ***** *
  2415. *****0*
  2416. *******")]
  2417. [InlineData (
  2418. "0 你 4",
  2419. Alignment.End,
  2420. Alignment.Fill,
  2421. TextDirection.BottomTop_LeftRight,
  2422. @"
  2423. *****4*
  2424. ***** *
  2425. ***** *
  2426. *****你
  2427. ***** *
  2428. ***** *
  2429. *****0*")]
  2430. // BottomTop_RightLeft
  2431. [InlineData (
  2432. "0 2 4",
  2433. Alignment.End,
  2434. Alignment.Start,
  2435. TextDirection.BottomTop_RightLeft,
  2436. @"
  2437. ******4
  2438. ******
  2439. ******2
  2440. ******
  2441. ******0
  2442. *******
  2443. *******")]
  2444. [InlineData (
  2445. "0 2 4",
  2446. Alignment.End,
  2447. Alignment.End,
  2448. TextDirection.BottomTop_RightLeft,
  2449. @"
  2450. *******
  2451. *******
  2452. ******4
  2453. ******
  2454. ******2
  2455. ******
  2456. ******0")]
  2457. [InlineData (
  2458. "0 2 4",
  2459. Alignment.End,
  2460. Alignment.Center,
  2461. TextDirection.BottomTop_RightLeft,
  2462. @"
  2463. *******
  2464. ******4
  2465. ******
  2466. ******2
  2467. ******
  2468. ******0
  2469. *******")]
  2470. [InlineData (
  2471. "0 2 4",
  2472. Alignment.End,
  2473. Alignment.Fill,
  2474. TextDirection.BottomTop_RightLeft,
  2475. @"
  2476. ******4
  2477. ******
  2478. ******
  2479. ******2
  2480. ******
  2481. ******
  2482. ******0")]
  2483. [InlineData (
  2484. "0 你 4",
  2485. Alignment.End,
  2486. Alignment.Start,
  2487. TextDirection.BottomTop_RightLeft,
  2488. @"
  2489. *****4*
  2490. ***** *
  2491. *****你
  2492. ***** *
  2493. *****0*
  2494. *******
  2495. *******")]
  2496. [InlineData (
  2497. "0 你 4",
  2498. Alignment.End,
  2499. Alignment.End,
  2500. TextDirection.BottomTop_RightLeft,
  2501. @"
  2502. *******
  2503. *******
  2504. *****4*
  2505. ***** *
  2506. *****你
  2507. ***** *
  2508. *****0*")]
  2509. [InlineData (
  2510. "0 你 4",
  2511. Alignment.End,
  2512. Alignment.Center,
  2513. TextDirection.BottomTop_RightLeft,
  2514. @"
  2515. *******
  2516. *****4*
  2517. ***** *
  2518. *****你
  2519. ***** *
  2520. *****0*
  2521. *******")]
  2522. [InlineData (
  2523. "0 你 4",
  2524. Alignment.End,
  2525. Alignment.Fill,
  2526. TextDirection.BottomTop_RightLeft,
  2527. @"
  2528. *****4*
  2529. ***** *
  2530. ***** *
  2531. *****你
  2532. ***** *
  2533. ***** *
  2534. *****0*")]
  2535. // Vertical with alignment.Centered
  2536. // TopBottom_LeftRight
  2537. [InlineData (
  2538. "0 2 4",
  2539. Alignment.Center,
  2540. Alignment.Start,
  2541. TextDirection.TopBottom_LeftRight,
  2542. @"
  2543. ***0***
  2544. *** ***
  2545. ***2***
  2546. *** ***
  2547. ***4***
  2548. *******
  2549. *******")]
  2550. [InlineData (
  2551. "0 2 4",
  2552. Alignment.Center,
  2553. Alignment.End,
  2554. TextDirection.TopBottom_LeftRight,
  2555. @"
  2556. *******
  2557. *******
  2558. ***0***
  2559. *** ***
  2560. ***2***
  2561. *** ***
  2562. ***4***")]
  2563. [InlineData (
  2564. "0 2 4",
  2565. Alignment.Center,
  2566. Alignment.Center,
  2567. TextDirection.TopBottom_LeftRight,
  2568. @"
  2569. *******
  2570. ***0***
  2571. *** ***
  2572. ***2***
  2573. *** ***
  2574. ***4***
  2575. *******")]
  2576. [InlineData (
  2577. "0 2 4",
  2578. Alignment.Center,
  2579. Alignment.Fill,
  2580. TextDirection.TopBottom_LeftRight,
  2581. @"
  2582. ***0***
  2583. *** ***
  2584. *** ***
  2585. ***2***
  2586. *** ***
  2587. *** ***
  2588. ***4***")]
  2589. [InlineData (
  2590. "0 你 4",
  2591. Alignment.Center,
  2592. Alignment.Start,
  2593. TextDirection.TopBottom_LeftRight,
  2594. @"
  2595. **0****
  2596. ** ****
  2597. **你***
  2598. ** ****
  2599. **4****
  2600. *******
  2601. *******")]
  2602. [InlineData (
  2603. "0 你 4",
  2604. Alignment.Center,
  2605. Alignment.End,
  2606. TextDirection.TopBottom_LeftRight,
  2607. @"
  2608. *******
  2609. *******
  2610. **0****
  2611. ** ****
  2612. **你***
  2613. ** ****
  2614. **4****")]
  2615. [InlineData (
  2616. "0 你 4",
  2617. Alignment.Center,
  2618. Alignment.Center,
  2619. TextDirection.TopBottom_LeftRight,
  2620. @"
  2621. *******
  2622. **0****
  2623. ** ****
  2624. **你***
  2625. ** ****
  2626. **4****
  2627. *******")]
  2628. [InlineData (
  2629. "0 你 4",
  2630. Alignment.Center,
  2631. Alignment.Fill,
  2632. TextDirection.TopBottom_LeftRight,
  2633. @"
  2634. **0****
  2635. ** ****
  2636. ** ****
  2637. **你***
  2638. ** ****
  2639. ** ****
  2640. **4****")]
  2641. // TopBottom_RightLeft
  2642. [InlineData (
  2643. "0 2 4",
  2644. Alignment.Center,
  2645. Alignment.Start,
  2646. TextDirection.TopBottom_RightLeft,
  2647. @"
  2648. ***0***
  2649. *** ***
  2650. ***2***
  2651. *** ***
  2652. ***4***
  2653. *******
  2654. *******")]
  2655. [InlineData (
  2656. "0 2 4",
  2657. Alignment.Center,
  2658. Alignment.End,
  2659. TextDirection.TopBottom_RightLeft,
  2660. @"
  2661. *******
  2662. *******
  2663. ***0***
  2664. *** ***
  2665. ***2***
  2666. *** ***
  2667. ***4***")]
  2668. [InlineData (
  2669. "0 2 4",
  2670. Alignment.Center,
  2671. Alignment.Center,
  2672. TextDirection.TopBottom_RightLeft,
  2673. @"
  2674. *******
  2675. ***0***
  2676. *** ***
  2677. ***2***
  2678. *** ***
  2679. ***4***
  2680. *******")]
  2681. [InlineData (
  2682. "0 2 4",
  2683. Alignment.Center,
  2684. Alignment.Fill,
  2685. TextDirection.TopBottom_RightLeft,
  2686. @"
  2687. ***0***
  2688. *** ***
  2689. *** ***
  2690. ***2***
  2691. *** ***
  2692. *** ***
  2693. ***4***")]
  2694. [InlineData (
  2695. "0 你 4",
  2696. Alignment.Center,
  2697. Alignment.Start,
  2698. TextDirection.TopBottom_RightLeft,
  2699. @"
  2700. **0****
  2701. ** ****
  2702. **你***
  2703. ** ****
  2704. **4****
  2705. *******
  2706. *******")]
  2707. [InlineData (
  2708. "0 你 4",
  2709. Alignment.Center,
  2710. Alignment.End,
  2711. TextDirection.TopBottom_RightLeft,
  2712. @"
  2713. *******
  2714. *******
  2715. **0****
  2716. ** ****
  2717. **你***
  2718. ** ****
  2719. **4****")]
  2720. [InlineData (
  2721. "0 你 4",
  2722. Alignment.Center,
  2723. Alignment.Center,
  2724. TextDirection.TopBottom_RightLeft,
  2725. @"
  2726. *******
  2727. **0****
  2728. ** ****
  2729. **你***
  2730. ** ****
  2731. **4****
  2732. *******")]
  2733. [InlineData (
  2734. "0 你 4",
  2735. Alignment.Center,
  2736. Alignment.Fill,
  2737. TextDirection.TopBottom_RightLeft,
  2738. @"
  2739. **0****
  2740. ** ****
  2741. ** ****
  2742. **你***
  2743. ** ****
  2744. ** ****
  2745. **4****")]
  2746. // BottomTop_LeftRight
  2747. [InlineData (
  2748. "0 2 4",
  2749. Alignment.Center,
  2750. Alignment.Start,
  2751. TextDirection.BottomTop_LeftRight,
  2752. @"
  2753. ***4***
  2754. *** ***
  2755. ***2***
  2756. *** ***
  2757. ***0***
  2758. *******
  2759. *******")]
  2760. [InlineData (
  2761. "0 2 4",
  2762. Alignment.Center,
  2763. Alignment.End,
  2764. TextDirection.BottomTop_LeftRight,
  2765. @"
  2766. *******
  2767. *******
  2768. ***4***
  2769. *** ***
  2770. ***2***
  2771. *** ***
  2772. ***0***")]
  2773. [InlineData (
  2774. "0 2 4",
  2775. Alignment.Center,
  2776. Alignment.Center,
  2777. TextDirection.BottomTop_LeftRight,
  2778. @"
  2779. *******
  2780. ***4***
  2781. *** ***
  2782. ***2***
  2783. *** ***
  2784. ***0***
  2785. *******")]
  2786. [InlineData (
  2787. "0 2 4",
  2788. Alignment.Center,
  2789. Alignment.Fill,
  2790. TextDirection.BottomTop_LeftRight,
  2791. @"
  2792. ***4***
  2793. *** ***
  2794. *** ***
  2795. ***2***
  2796. *** ***
  2797. *** ***
  2798. ***0***")]
  2799. [InlineData (
  2800. "0 你 4",
  2801. Alignment.Center,
  2802. Alignment.Start,
  2803. TextDirection.BottomTop_LeftRight,
  2804. @"
  2805. **4****
  2806. ** ****
  2807. **你***
  2808. ** ****
  2809. **0****
  2810. *******
  2811. *******")]
  2812. [InlineData (
  2813. "0 你 4",
  2814. Alignment.Center,
  2815. Alignment.End,
  2816. TextDirection.BottomTop_LeftRight,
  2817. @"
  2818. *******
  2819. *******
  2820. **4****
  2821. ** ****
  2822. **你***
  2823. ** ****
  2824. **0****")]
  2825. [InlineData (
  2826. "0 你 4",
  2827. Alignment.Center,
  2828. Alignment.Center,
  2829. TextDirection.BottomTop_LeftRight,
  2830. @"
  2831. *******
  2832. **4****
  2833. ** ****
  2834. **你***
  2835. ** ****
  2836. **0****
  2837. *******")]
  2838. [InlineData (
  2839. "0 你 4",
  2840. Alignment.Center,
  2841. Alignment.Fill,
  2842. TextDirection.BottomTop_LeftRight,
  2843. @"
  2844. **4****
  2845. ** ****
  2846. ** ****
  2847. **你***
  2848. ** ****
  2849. ** ****
  2850. **0****")]
  2851. // BottomTop_RightLeft
  2852. [InlineData (
  2853. "0 2 4",
  2854. Alignment.Center,
  2855. Alignment.Start,
  2856. TextDirection.BottomTop_RightLeft,
  2857. @"
  2858. ***4***
  2859. *** ***
  2860. ***2***
  2861. *** ***
  2862. ***0***
  2863. *******
  2864. *******")]
  2865. [InlineData (
  2866. "0 2 4",
  2867. Alignment.Center,
  2868. Alignment.End,
  2869. TextDirection.BottomTop_RightLeft,
  2870. @"
  2871. *******
  2872. *******
  2873. ***4***
  2874. *** ***
  2875. ***2***
  2876. *** ***
  2877. ***0***")]
  2878. [InlineData (
  2879. "0 2 4",
  2880. Alignment.Center,
  2881. Alignment.Center,
  2882. TextDirection.BottomTop_RightLeft,
  2883. @"
  2884. *******
  2885. ***4***
  2886. *** ***
  2887. ***2***
  2888. *** ***
  2889. ***0***
  2890. *******")]
  2891. [InlineData (
  2892. "0 2 4",
  2893. Alignment.Center,
  2894. Alignment.Fill,
  2895. TextDirection.BottomTop_RightLeft,
  2896. @"
  2897. ***4***
  2898. *** ***
  2899. *** ***
  2900. ***2***
  2901. *** ***
  2902. *** ***
  2903. ***0***")]
  2904. [InlineData (
  2905. "0 你 4",
  2906. Alignment.Center,
  2907. Alignment.Start,
  2908. TextDirection.BottomTop_RightLeft,
  2909. @"
  2910. **4****
  2911. ** ****
  2912. **你***
  2913. ** ****
  2914. **0****
  2915. *******
  2916. *******")]
  2917. [InlineData (
  2918. "0 你 4",
  2919. Alignment.Center,
  2920. Alignment.End,
  2921. TextDirection.BottomTop_RightLeft,
  2922. @"
  2923. *******
  2924. *******
  2925. **4****
  2926. ** ****
  2927. **你***
  2928. ** ****
  2929. **0****")]
  2930. [InlineData (
  2931. "0 你 4",
  2932. Alignment.Center,
  2933. Alignment.Center,
  2934. TextDirection.BottomTop_RightLeft,
  2935. @"
  2936. *******
  2937. **4****
  2938. ** ****
  2939. **你***
  2940. ** ****
  2941. **0****
  2942. *******")]
  2943. [InlineData (
  2944. "0 你 4",
  2945. Alignment.Center,
  2946. Alignment.Fill,
  2947. TextDirection.BottomTop_RightLeft,
  2948. @"
  2949. **4****
  2950. ** ****
  2951. ** ****
  2952. **你***
  2953. ** ****
  2954. ** ****
  2955. **0****")]
  2956. // Vertical with alignment.Justified
  2957. // TopBottom_LeftRight
  2958. [InlineData (
  2959. "0 2 4",
  2960. Alignment.Fill,
  2961. Alignment.Start,
  2962. TextDirection.TopBottom_LeftRight,
  2963. @"
  2964. 0******
  2965. ******
  2966. 2******
  2967. ******
  2968. 4******
  2969. *******
  2970. *******")]
  2971. [InlineData (
  2972. "0 2 4",
  2973. Alignment.Fill,
  2974. Alignment.End,
  2975. TextDirection.TopBottom_LeftRight,
  2976. @"
  2977. *******
  2978. *******
  2979. 0******
  2980. ******
  2981. 2******
  2982. ******
  2983. 4******")]
  2984. [InlineData (
  2985. "0 2 4",
  2986. Alignment.Fill,
  2987. Alignment.Center,
  2988. TextDirection.TopBottom_LeftRight,
  2989. @"
  2990. *******
  2991. 0******
  2992. ******
  2993. 2******
  2994. ******
  2995. 4******
  2996. *******")]
  2997. [InlineData (
  2998. "0 2 4",
  2999. Alignment.Fill,
  3000. Alignment.Fill,
  3001. TextDirection.TopBottom_LeftRight,
  3002. @"
  3003. 0******
  3004. ******
  3005. ******
  3006. 2******
  3007. ******
  3008. ******
  3009. 4******")]
  3010. [InlineData (
  3011. "0 你 4",
  3012. Alignment.Fill,
  3013. Alignment.Start,
  3014. TextDirection.TopBottom_LeftRight,
  3015. @"
  3016. 0******
  3017. ******
  3018. 你*****
  3019. ******
  3020. 4******
  3021. *******
  3022. *******")]
  3023. [InlineData (
  3024. "0 你 4",
  3025. Alignment.Fill,
  3026. Alignment.End,
  3027. TextDirection.TopBottom_LeftRight,
  3028. @"
  3029. *******
  3030. *******
  3031. 0******
  3032. ******
  3033. 你*****
  3034. ******
  3035. 4******")]
  3036. [InlineData (
  3037. "0 你 4",
  3038. Alignment.Fill,
  3039. Alignment.Center,
  3040. TextDirection.TopBottom_LeftRight,
  3041. @"
  3042. *******
  3043. 0******
  3044. ******
  3045. 你*****
  3046. ******
  3047. 4******
  3048. *******")]
  3049. [InlineData (
  3050. "0 你 4",
  3051. Alignment.Fill,
  3052. Alignment.Fill,
  3053. TextDirection.TopBottom_LeftRight,
  3054. @"
  3055. 0******
  3056. ******
  3057. ******
  3058. 你*****
  3059. ******
  3060. ******
  3061. 4******")]
  3062. // TopBottom_RightLeft
  3063. [InlineData (
  3064. "0 2 4",
  3065. Alignment.Fill,
  3066. Alignment.Start,
  3067. TextDirection.TopBottom_RightLeft,
  3068. @"
  3069. 0******
  3070. ******
  3071. 2******
  3072. ******
  3073. 4******
  3074. *******
  3075. *******")]
  3076. [InlineData (
  3077. "0 2 4",
  3078. Alignment.Fill,
  3079. Alignment.End,
  3080. TextDirection.TopBottom_RightLeft,
  3081. @"
  3082. *******
  3083. *******
  3084. 0******
  3085. ******
  3086. 2******
  3087. ******
  3088. 4******")]
  3089. [InlineData (
  3090. "0 2 4",
  3091. Alignment.Fill,
  3092. Alignment.Center,
  3093. TextDirection.TopBottom_RightLeft,
  3094. @"
  3095. *******
  3096. 0******
  3097. ******
  3098. 2******
  3099. ******
  3100. 4******
  3101. *******")]
  3102. [InlineData (
  3103. "0 2 4",
  3104. Alignment.Fill,
  3105. Alignment.Fill,
  3106. TextDirection.TopBottom_RightLeft,
  3107. @"
  3108. 0******
  3109. ******
  3110. ******
  3111. 2******
  3112. ******
  3113. ******
  3114. 4******")]
  3115. [InlineData (
  3116. "0 你 4",
  3117. Alignment.Fill,
  3118. Alignment.Start,
  3119. TextDirection.TopBottom_RightLeft,
  3120. @"
  3121. 0******
  3122. ******
  3123. 你*****
  3124. ******
  3125. 4******
  3126. *******
  3127. *******")]
  3128. [InlineData (
  3129. "0 你 4",
  3130. Alignment.Fill,
  3131. Alignment.End,
  3132. TextDirection.TopBottom_RightLeft,
  3133. @"
  3134. *******
  3135. *******
  3136. 0******
  3137. ******
  3138. 你*****
  3139. ******
  3140. 4******")]
  3141. [InlineData (
  3142. "0 你 4",
  3143. Alignment.Fill,
  3144. Alignment.Center,
  3145. TextDirection.TopBottom_RightLeft,
  3146. @"
  3147. *******
  3148. 0******
  3149. ******
  3150. 你*****
  3151. ******
  3152. 4******
  3153. *******")]
  3154. [InlineData (
  3155. "0 你 4",
  3156. Alignment.Fill,
  3157. Alignment.Fill,
  3158. TextDirection.TopBottom_RightLeft,
  3159. @"
  3160. 0******
  3161. ******
  3162. ******
  3163. 你*****
  3164. ******
  3165. ******
  3166. 4******")]
  3167. // BottomTop_LeftRight
  3168. [InlineData (
  3169. "0 2 4",
  3170. Alignment.Fill,
  3171. Alignment.Start,
  3172. TextDirection.BottomTop_LeftRight,
  3173. @"
  3174. 4******
  3175. ******
  3176. 2******
  3177. ******
  3178. 0******
  3179. *******
  3180. *******")]
  3181. [InlineData (
  3182. "0 2 4",
  3183. Alignment.Fill,
  3184. Alignment.End,
  3185. TextDirection.BottomTop_LeftRight,
  3186. @"
  3187. *******
  3188. *******
  3189. 4******
  3190. ******
  3191. 2******
  3192. ******
  3193. 0******")]
  3194. [InlineData (
  3195. "0 2 4",
  3196. Alignment.Fill,
  3197. Alignment.Center,
  3198. TextDirection.BottomTop_LeftRight,
  3199. @"
  3200. *******
  3201. 4******
  3202. ******
  3203. 2******
  3204. ******
  3205. 0******
  3206. *******")]
  3207. [InlineData (
  3208. "0 2 4",
  3209. Alignment.Fill,
  3210. Alignment.Fill,
  3211. TextDirection.BottomTop_LeftRight,
  3212. @"
  3213. 4******
  3214. ******
  3215. ******
  3216. 2******
  3217. ******
  3218. ******
  3219. 0******")]
  3220. [InlineData (
  3221. "0 你 4",
  3222. Alignment.Fill,
  3223. Alignment.Start,
  3224. TextDirection.BottomTop_LeftRight,
  3225. @"
  3226. 4******
  3227. ******
  3228. 你*****
  3229. ******
  3230. 0******
  3231. *******
  3232. *******")]
  3233. [InlineData (
  3234. "0 你 4",
  3235. Alignment.Fill,
  3236. Alignment.End,
  3237. TextDirection.BottomTop_LeftRight,
  3238. @"
  3239. *******
  3240. *******
  3241. 4******
  3242. ******
  3243. 你*****
  3244. ******
  3245. 0******")]
  3246. [InlineData (
  3247. "0 你 4",
  3248. Alignment.Fill,
  3249. Alignment.Center,
  3250. TextDirection.BottomTop_LeftRight,
  3251. @"
  3252. *******
  3253. 4******
  3254. ******
  3255. 你*****
  3256. ******
  3257. 0******
  3258. *******")]
  3259. [InlineData (
  3260. "0 你 4",
  3261. Alignment.Fill,
  3262. Alignment.Fill,
  3263. TextDirection.BottomTop_LeftRight,
  3264. @"
  3265. 4******
  3266. ******
  3267. ******
  3268. 你*****
  3269. ******
  3270. ******
  3271. 0******")]
  3272. // BottomTop_RightLeft
  3273. [InlineData (
  3274. "0 2 4",
  3275. Alignment.Fill,
  3276. Alignment.Start,
  3277. TextDirection.BottomTop_RightLeft,
  3278. @"
  3279. 4******
  3280. ******
  3281. 2******
  3282. ******
  3283. 0******
  3284. *******
  3285. *******")]
  3286. [InlineData (
  3287. "0 2 4",
  3288. Alignment.Fill,
  3289. Alignment.End,
  3290. TextDirection.BottomTop_RightLeft,
  3291. @"
  3292. *******
  3293. *******
  3294. 4******
  3295. ******
  3296. 2******
  3297. ******
  3298. 0******")]
  3299. [InlineData (
  3300. "0 2 4",
  3301. Alignment.Fill,
  3302. Alignment.Center,
  3303. TextDirection.BottomTop_RightLeft,
  3304. @"
  3305. *******
  3306. 4******
  3307. ******
  3308. 2******
  3309. ******
  3310. 0******
  3311. *******")]
  3312. [InlineData (
  3313. "0 2 4",
  3314. Alignment.Fill,
  3315. Alignment.Fill,
  3316. TextDirection.BottomTop_RightLeft,
  3317. @"
  3318. 4******
  3319. ******
  3320. ******
  3321. 2******
  3322. ******
  3323. ******
  3324. 0******")]
  3325. [InlineData (
  3326. "0 你 4",
  3327. Alignment.Fill,
  3328. Alignment.Start,
  3329. TextDirection.BottomTop_RightLeft,
  3330. @"
  3331. 4******
  3332. ******
  3333. 你*****
  3334. ******
  3335. 0******
  3336. *******
  3337. *******")]
  3338. [InlineData (
  3339. "0 你 4",
  3340. Alignment.Fill,
  3341. Alignment.End,
  3342. TextDirection.BottomTop_RightLeft,
  3343. @"
  3344. *******
  3345. *******
  3346. 4******
  3347. ******
  3348. 你*****
  3349. ******
  3350. 0******")]
  3351. [InlineData (
  3352. "0 你 4",
  3353. Alignment.Fill,
  3354. Alignment.Center,
  3355. TextDirection.BottomTop_RightLeft,
  3356. @"
  3357. *******
  3358. 4******
  3359. ******
  3360. 你*****
  3361. ******
  3362. 0******
  3363. *******")]
  3364. [InlineData (
  3365. "0 你 4",
  3366. Alignment.Fill,
  3367. Alignment.Fill,
  3368. TextDirection.BottomTop_RightLeft,
  3369. @"
  3370. 4******
  3371. ******
  3372. ******
  3373. 你*****
  3374. ******
  3375. ******
  3376. 0******")]
  3377. public void Draw_Text_Justification (string text, Alignment horizontalTextAlignment, Alignment alignment, TextDirection textDirection, string expectedText)
  3378. {
  3379. IDriver driver = CreateFakeDriver ();
  3380. TextFormatter tf = new ()
  3381. {
  3382. Alignment = horizontalTextAlignment,
  3383. VerticalAlignment = alignment,
  3384. Direction = textDirection,
  3385. ConstrainToSize = new (7, 7),
  3386. Text = text
  3387. };
  3388. driver.FillRect (new (0, 0, 7, 7), (Rune)'*');
  3389. tf.Draw (driver: driver, screen: new (0, 0, 7, 7), normalColor: Attribute.Default, hotColor: Attribute.Default);
  3390. DriverAssert.AssertDriverContentsWithFrameAre (expectedText, output, driver);
  3391. }
  3392. }