Esempio n. 1
0
        public void FetchDateWithNullArrayShouldThrow()
        {
            BankImportUtilities subject = CreateSubject();

            subject.FetchDate(null, 2);

            Assert.Fail();
        }
Esempio n. 2
0
        public void FetchDateWithNegativeOutOfRangeIndexShouldThrow()
        {
            BankImportUtilities subject = CreateSubject();

            string[] testArray = CreateTestArray();

            subject.FetchDate(testArray, -12);

            Assert.Fail();
        }
Esempio n. 3
0
        public void FetchDateWithInvalidDateShouldReturnMinDateTime()
        {
            BankImportUtilities subject = CreateSubject();

            string[] testArray = CreateTestArray();

            subject.FetchDate(testArray, 3);

            Assert.Fail();
        }
Esempio n. 4
0
        public void FetchDateWithValidDateStringShouldReturnDate()
        {
            BankImportUtilities subject = CreateSubject();

            string[] testArray = CreateTestArray();

            DateTime result = subject.FetchDate(testArray, 1);

            Assert.IsInstanceOfType(result, typeof(DateTime));
            Assert.AreNotEqual(DateTime.MinValue, result);
        }