Exemplo n.º 1
0
        public void Contains_Should_False()
        {
            IPlateau plateau = new Plateau("plateau", new Point(0, 0), new Point(5, 5));
            bool     output  = plateau.Contains(new Point(6, 0));
            bool     output2 = plateau.Contains(new Point(-1, 0));
            bool     output3 = plateau.Contains(new Point(9, 5));

            plateau.Name.Should().NotBeNullOrEmpty();
            output.Should().BeFalse();
            output2.Should().BeFalse();
            output3.Should().BeFalse();
        }
Exemplo n.º 2
0
        public void WhenAtLeastOneCoordinateValueLowerThanMinSize__ContainsShouldReturnFalse(int x, int y)
        {
            var sut = new Plateau(2, 2);

            bool result = sut.Contains(new Point(x, y));

            Assert.False(result);
        }
Exemplo n.º 3
0
        public void WhenAllCoordinateValue_LowerThanPlateauSize_And__GreaterThanMinSize_ContainsShouldReturnTrue(int x, int y)
        {
            var sut = new Plateau(2, 2);

            bool result = sut.Contains(new Point(x, y));

            Assert.True(result);
        }