Example #1
0
        public void Disc_PositionAtPassageWithOffset(int tPress, int expectedPosition)
        {
            var disc = new Problem.Disc(1, 2, 3);

            int position = disc.PositionAtPassage(tPress);

            Assert.Equal(expectedPosition, position);
        }
Example #2
0
        public void Disc_PositionAtPassage(int discInitialPosition, int discSize, int t, int expectedPosition)
        {
            var disc = new Problem.Disc(0, discInitialPosition, discSize);

            int position = disc.PositionAtPassage(t);

            Assert.Equal(expectedPosition, position);
        }