예제 #1
0
        public void InvalidateFastQParseRange()
        {
            try
            {
                using (FastQParser fqParserObj = new FastQParser())
                {
                    fqParserObj.ParseRange(-1, 0, new SequencePointer());
                }
                Assert.Fail();
            }
            catch (ArgumentOutOfRangeException)
            {
                ApplicationLog.WriteLine(
                    "FastQ Parser P2 : Successfully validated the exception");
                Console.WriteLine(
                    "FastQ Parser P2 : Successfully validated the exception");
            }

            try
            {
                using (FastQParser fqParserObj = new FastQParser())
                {
                    fqParserObj.ParseRange(0, -1, new SequencePointer());
                }
                Assert.Fail();
            }
            catch (ArgumentOutOfRangeException)
            {
                ApplicationLog.WriteLine(
                    "FastQ Parser P2 : Successfully validated the exception");
                Console.WriteLine(
                    "FastQ Parser P2 : Successfully validated the exception");
            }
        }