コード例 #1
0
 public void StartingAtEndAndEndingAfterEnd()
 {
     Assert.Equal(
         new[] { LongSpan },
         LongSpan.Subtract(TextSpan.FromBounds(AtEnd(LongSpan), RightAfterEnd(LongSpan)))
         );
 }
コード例 #2
0
 public void StartingBeforeEndAndEndingAtEnd()
 {
     Assert.Equal(
         new[] { TextSpan.FromBounds(AtStart(LongSpan), RightBeforeEnd(LongSpan)) },
         LongSpan.Subtract(TextSpan.FromBounds(RightBeforeEnd(LongSpan), AtEnd(LongSpan)))
         );
 }
コード例 #3
0
 public void StartingAtStartAndEndingAtStart()
 {
     Assert.Equal(
         new[] { LongSpan },
         LongSpan.Subtract(TextSpan.FromBounds(AtStart(LongSpan), AtStart(LongSpan)))
         );
 }
コード例 #4
0
 public void StartingBeforeStartAndEndingAfterEnd()
 {
     Assert.Empty(
         LongSpan.Subtract(
             TextSpan.FromBounds(RightBeforeStart(LongSpan), RightAfterEnd(LongSpan))
             )
         );
 }
コード例 #5
0
 public void StartingBeforeStartAndEndingBeforeStart()
 {
     Assert.Equal(
         new[] { LongSpan },
         LongSpan.Subtract(
             TextSpan.FromBounds(RightBeforeStart(LongSpan), RightBeforeStart(LongSpan))
             )
         );
 }
コード例 #6
0
 public void StartingAtStartAndEndingAtEnd()
 {
     Assert.Empty(
         LongSpan.Subtract(TextSpan.FromBounds(AtStart(LongSpan), AtEnd(LongSpan))));
 }