Пример #1
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");
        }
Пример #2
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");
        }