Пример #1
0
        public async Task ShouldReturnCountOfInchesOverlaping_When_ThreeClaimsOverlap(Mock <IAdventInputProvider> adventInput)
        {
            // Arrange
            adventInput.Setup(c => c.GetElfsFabricClaims()).ReturnsAsync(ElfsClaimsOnFibricWithThreeOverlaping());
            var day3 = new Day3(adventInput.Object);

            // Act
            var result = await day3.CountFabricInchesOverlaping();

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