public void ChopFrontTest() { var initial = new SectorRange(1000, 2000); var chopResults1 = initial.Chop(new SectorRange(1000, 1500)).ToArray(); var chopResults2 = initial.Chop(new SectorRange(500, 1500)).ToArray(); AssertEquals(1, chopResults1.Length); AssertEquals(1, chopResults2.Length); AssertEquals(chopResults1[0], chopResults2[0]); AssertEquals(new SectorRange(1500, 2000), chopResults1[0]); }
public void ChopMiddleTest() { var initial = new SectorRange(1000, 2000); var chopResults = initial.Chop(new SectorRange(1250, 1750)).ToArray(); AssertEquals(2, chopResults.Length); AssertEquals(new SectorRange(1000, 1250), chopResults[0]); AssertEquals(new SectorRange(1750, 2000), chopResults[1]); }
public void ChopMiddleTest() { var initial = new SectorRange(1000, 2000); var chopResults = initial.Chop(new SectorRange(1250, 1750)).ToArray(); AssertEquals(2, chopResults.Length); AssertEquals(new SectorRange(1000, 1249), chopResults[0]); AssertEquals(new SectorRange(1750, 2000), chopResults[1]); }