Exemplo n.º 1
0
        public async Task ShouldReturnCorrectIdAndMinuteMultiplicationResult_When_SneakOnLongestSleepingGuardStrategyUsed(Mock <IAdventInputProvider> adventInput)
        {
            // Arrange
            var guards = GetGuards();

            adventInput.Setup(a => a.GetGuards()).ReturnsAsync(GetGuards());
            var day4 = new Day4(adventInput.Object);

            // Act
            var result = await day4.FindLongestSleepingGuardAndMinuteToSneak();

            // Assert
            Assert.Equal(240, result);
        }