Пример #1
0
        public void NegativeMinPriceShouldUpdatePriceToMinimalAvailable()
        {
            //Arrange
            var booksResultsPage = new FictionBooksPage(driver);
            var priceValueToSet  = -1;

            //Act
            booksResultsPage
            .SetMinimumPrice(priceValueToSet)
            .SubmitPriceFilter();

            //Assert
            var actualMinimumPrice = booksResultsPage.GetMinPrice();

            Assert.IsTrue(actualMinimumPrice - priceValueToSet > 0);
        }
Пример #2
0
        public void NegativeMinPriceShouldUpdatePriceToMinimalAvailable()
        {
            //Arrange
            var booksResultsPage   = new FictionBooksPage(driver);
            var minPriceValueToSet = 20;
            var maxPriceValueToSet = 250;

            //Act
            booksResultsPage
            .SetPrice(minPriceValueToSet, maxPriceValueToSet).SubmitPriceFilter();

            var actualMinimumPrice = booksResultsPage.GetMinPrice();
            var actualMaximumPrice = booksResultsPage.GetMaxPrice();

            //Assert
            actualMinimumPrice.Should().Be(minPriceValueToSet);
            actualMaximumPrice.Should().Be(maxPriceValueToSet);
        }