Esempio n. 1
0
        public void NextPersonForCountTo_Throws_ForPersonIdIsInvalid(
            int personId,
            int countTo)
        {
            // Arrange
            CircleOfPeople sut = CreateSut(3);

            // Act
            // Assert
            Assert.Throws <ArgumentException>(() => sut.NextPersonForCountTo(personId,
                                                                             countTo));
        }
Esempio n. 2
0
        public void NextPersonForCountTo_ReturnsPersonId_ForGivenPersonIdAndCount(
            int numberOfPeopleStanding,
            int personId,
            int countTo,
            int expected)
        {
            // Arrange
            CircleOfPeople sut = CreateSut(numberOfPeopleStanding);

            // Act
            int actual = sut.NextPersonForCountTo(personId,
                                                  countTo);

            // Assert
            Assert.Equal(expected,
                         actual);
        }