예제 #1
0
        public void Date_Time_should_return_true()
        {
            // Arrange

            bool             expected         = true;
            SharedSqlCommand sharedsqlcommand = new SharedSqlCommand();

            // Act

            bool actual = sharedsqlcommand.DateTimeValidation("20-09-2019");

            // Assert

            Assert.AreEqual(expected, actual, "Mimo poprawnej wartości zwraca false");
        }
예제 #2
0
        public void Date_Time_should_return_false()
        {
            // Arrange

            bool             expected         = false;
            SharedSqlCommand sharedsqlcommand = new SharedSqlCommand();

            // Act

            bool actual = sharedsqlcommand.DateTimeValidation("test");

            // Assert

            Assert.AreEqual(expected, actual, "Mimo błędnej wartości zwraca true");
        }
예제 #3
0
        public void Quantity_should_return_true()
        {
            // Arrange

            bool             expected         = true;
            SharedSqlCommand sharedsqlcommand = new SharedSqlCommand();

            // Act

            bool actual = sharedsqlcommand.QuantityValidation("10");

            // Assert

            Assert.AreEqual(expected, actual, "Mimo poprawnej wartości zwraca false");
        }