Ejemplo n.º 1
0
        public void TestSpin(int steps, string expected)
        {
            var sut     = new Spin($"s{steps}");
            var dancers = "abcde";
            var result  = sut.Execute(dancers);

            Assert.Equal(expected, result);
        }
Ejemplo n.º 2
0
        public void ShouldSpin(string test, int[] randomNumbers, int expectedCoefficients)
        {
            // arrange
            _recordedNumbers.AddMany(randomNumbers);

            // act
            int coefficient = _spin.Execute().Coefficient;

            // assert
            coefficient.Should().Be(expectedCoefficients);
        }