Esempio n. 1
0
        public void ShouldReturnPositiveDistanceIfSecondIdComesBefore()
        {
            var sequencer = new Sequencer(8);

            Assert.That(sequencer.Distance(8, 0), Is.EqualTo(8));
        }
Esempio n. 2
0
        public void ValuesAfterWrappingConsideredToBeGreater()
        {
            var sequencer = new Sequencer(8);

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

            Assert.That(sequencer.Distance(0, 8), Is.EqualTo(-8));
        }