public void StartingAtEndAndEndingAfterEnd() { Assert.Equal( new[] { LongSpan }, LongSpan.Subtract(TextSpan.FromBounds(AtEnd(LongSpan), RightAfterEnd(LongSpan))) ); }
public void StartingBeforeEndAndEndingAtEnd() { Assert.Equal( new[] { TextSpan.FromBounds(AtStart(LongSpan), RightBeforeEnd(LongSpan)) }, LongSpan.Subtract(TextSpan.FromBounds(RightBeforeEnd(LongSpan), AtEnd(LongSpan))) ); }
public void StartingAtStartAndEndingAtStart() { Assert.Equal( new[] { LongSpan }, LongSpan.Subtract(TextSpan.FromBounds(AtStart(LongSpan), AtStart(LongSpan))) ); }
public void StartingBeforeStartAndEndingAfterEnd() { Assert.Empty( LongSpan.Subtract( TextSpan.FromBounds(RightBeforeStart(LongSpan), RightAfterEnd(LongSpan)) ) ); }
public void StartingBeforeStartAndEndingBeforeStart() { Assert.Equal( new[] { LongSpan }, LongSpan.Subtract( TextSpan.FromBounds(RightBeforeStart(LongSpan), RightBeforeStart(LongSpan)) ) ); }
public void StartingAtStartAndEndingAtEnd() { Assert.Empty( LongSpan.Subtract(TextSpan.FromBounds(AtStart(LongSpan), AtEnd(LongSpan)))); }