Ejemplo n.º 1
0
        public void Create_Should_Create_Plateau_When_Expected_Size()
        {
            //When
            _plateauService.Create(5, 5);
            //Than

            Assert.AreEqual(_plateauService.GetCurrentPlateau().Width, 5);
            Assert.AreEqual(_plateauService.GetCurrentPlateau().Height, 5);
        }
Ejemplo n.º 2
0
        public void Create_Should_Create_Plateau_When_Expected_Size()
        {
            //Arrange
            var       plateauService = new PlateauService(_loggerMock);
            const int width          = 5;
            const int height         = 4;

            //Act
            plateauService.Create(width, height);
            //Assert

            plateauService.GetCurrentPlateau().Width.Should().Be(width);
            plateauService.GetCurrentPlateau().Height.Should().Be(height);
        }