示例#1
0
        public void FetchGuidWithNullArrayShouldThrow()
        {
            BankImportUtilities subject = CreateSubject();

            subject.FetchGuid(null, 2);

            Assert.Fail();
        }
示例#2
0
        public void FetchGuidWithOutOfRangeIndexShouldThrow()
        {
            BankImportUtilities subject = CreateSubject();

            string[] testArray = CreateTestArray();

            subject.FetchGuid(testArray, 12);

            Assert.Fail();
        }
示例#3
0
        public void FetchGuidWithInvalidGuidShouldThrow()
        {
            BankImportUtilities subject = CreateSubject();

            string[] testArray = CreateTestArray();

            subject.FetchGuid(testArray, 2);

            Assert.Fail();
        }
示例#4
0
        public void FetchGuidWithValidGuidStringShouldReturnGuid()
        {
            BankImportUtilities subject = CreateSubject();

            string[] testArray = CreateTestArray();

            Guid result = subject.FetchGuid(testArray, 4);

            Assert.IsInstanceOfType(result, typeof(Guid));
            Assert.AreNotEqual(Guid.Empty, result);
        }