File tree Expand file tree Collapse file tree
src/EPPlus.Fonts.OpenType.Tests/Integration Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -797,25 +797,10 @@ public void EnsureRTCharIdxBecomesCorrectWhenBreaking()
797797 var layout = OpenTypeFonts . GetTextLayoutEngineForFont ( font , FontFolders ) ;
798798 var wrappedLines = layout . WrapRichTextLines ( fragments , 225d ) ;
799799
800-
801- List < int > inputFragment = new List < int > ( ) ;
802- List < int > lstRtIdx = new List < int > ( ) ;
803- List < char > charAtPos = new List < char > ( ) ;
804- List < int > expectedStartRt = new List < int > ( ) ;
805-
806- var totalString = "MyparticularilyLongWordWithAbsolutelyNoSpacesAtAllJustToBeDifficult" ;
807-
808-
809- foreach ( var line in wrappedLines )
810- {
811- foreach ( LineFragment internalFragment in line . InternalLineFragments )
812- {
813- var fragIdx = internalFragment . FragmentIndex ;
814- inputFragment . Add ( fragIdx ) ;
815- lstRtIdx . Add ( internalFragment . StartRt ) ;
816- charAtPos . Add ( fragments [ fragIdx ] . Text [ internalFragment . StartRt ] ) ;
817- }
818- }
800+ Assert . AreEqual ( 5 , wrappedLines [ 1 ] . LineFragments [ 0 ] . StartRtIdx ) ;
801+ Assert . AreEqual ( 16 , wrappedLines [ 2 ] . LineFragments [ 0 ] . StartRtIdx ) ;
802+ Assert . AreEqual ( 28 , wrappedLines [ 3 ] . LineFragments [ 0 ] . StartRtIdx ) ;
803+ Assert . AreEqual ( 40 , wrappedLines [ 4 ] . LineFragments [ 0 ] . StartRtIdx ) ;
819804 }
820805
821806 [ TestMethod ]
You can’t perform that action at this time.
0 commit comments