示例#1
0
        public void CheckDate_Test_3()
        {
            // Arrange
            DateTime date  = DateTime.Now;
            DateTime date2 = new DateTime(2021, 07, 19, 2, 59, 30);

            // Act
            bool check = LuhnController.CheckDate(date, date2);

            // Assert
            Assert.AreEqual(false, check);
        }
示例#2
0
        public void CheckDate_Test_1()
        {
            // Arrange
            DateTime date  = new DateTime(2020, 07, 19, 3, 09, 30);
            DateTime date2 = new DateTime(2020, 07, 19, 3, 05, 30);

            // Act
            bool check = LuhnController.CheckDate(date, date2);

            // Assert
            Assert.AreEqual(true, check);
        }