public void AdvanceToNextTabStop_WhenPixelsPerTabStopIsPositiveAndPastTabStopButLessThanMinimumWidthAway_AdvancesAnExtraTabStop(bool negativeX) { int xShift = negativeX ? -120 : 0; var ruler = new PixelTabStopRuler(30, 10); Assert.AreEqual(xShift + 90, ruler.AdvanceToNextTabStop(xShift + 55)); }
public void AdvanceToNextTabStop_WhenPixelsPerTabStopIsPositiveAndPastTabStopAndExactlyMinimumWidthAway_AdvancesOneTabStop(bool negativeX) { int xShift = negativeX ? -120 : 0; var ruler = new PixelTabStopRuler(30, 10); Assert.AreEqual(xShift + 60, ruler.AdvanceToNextTabStop(xShift + 50)); }
public void AdvanceToNextTabStop_WhenPixelsPerTabStopIsPositiveAndAtTabStop_AdvancesWholeWidth(bool negativeX) { int xShift = negativeX ? -120 : 0; var ruler = new PixelTabStopRuler(30, 10); Assert.AreEqual(xShift + 60, ruler.AdvanceToNextTabStop(xShift + 30)); }
public void AdvanceToNextTabStop_WhenPixelsPerTabStopIsPositiveAndPastTabStopButLessThanMinimumWidthAway_AdvancesAnExtraTabStop(bool negativeX) { int xShift = negativeX ? -120 : 0; var ruler = new PixelTabStopRuler(30, 10); Assert.AreEqual(xShift + 90, ruler.AdvanceToNextTabStop(xShift + 55)); }
public void AdvanceToNextTabStop_WhenPixelsPerTabStopIsPositiveAndPastTabStopAndExactlyMinimumWidthAway_AdvancesOneTabStop(bool negativeX) { int xShift = negativeX ? -120 : 0; var ruler = new PixelTabStopRuler(30, 10); Assert.AreEqual(xShift + 60, ruler.AdvanceToNextTabStop(xShift + 50)); }
public void AdvanceToNextTabStop_WhenPixelsPerTabStopIsPositiveAndAtTabStop_AdvancesWholeWidth(bool negativeX) { int xShift = negativeX ? -120 : 0; var ruler = new PixelTabStopRuler(30, 10); Assert.AreEqual(xShift + 60, ruler.AdvanceToNextTabStop(xShift + 30)); }
public void AdvanceToNextTabStop_WhenPixelsPerTabStopIsZero_AdvancesMinimumWidth() { var ruler = new PixelTabStopRuler(0, 10); Assert.AreEqual(52, ruler.AdvanceToNextTabStop(42)); }
public void AdvanceToNextTabStop_WhenPixelsPerTabStopIsZero_AdvancesMinimumWidth() { var ruler = new PixelTabStopRuler(0, 10); Assert.AreEqual(52, ruler.AdvanceToNextTabStop(42)); }