public void ShouldReturnPositiveDistanceIfSecondIdComesBefore() { var sequencer = new Sequencer(8); Assert.That(sequencer.Distance(8, 0), Is.EqualTo(8)); }
public void ValuesAfterWrappingConsideredToBeGreater() { var sequencer = new Sequencer(8); Assert.That(sequencer.Distance(254, 4), Is.EqualTo(-6)); }
public void ShouldReturnNegativeDistanceIfSecondIdComesAfter() { var sequencer = new Sequencer(8); Assert.That(sequencer.Distance(0, 8), Is.EqualTo(-8)); }