public void InvalidateFastQParserGetSequenceId() { try { using (FastQParser fqParserObj = new FastQParser()) { fqParserObj.GetSequenceID(null); } Assert.Fail(); } catch (ArgumentNullException) { ApplicationLog.WriteLine( "FastQ Parser P2 : Successfully validated the exception"); Console.WriteLine( "FastQ Parser P2 : Successfully validated the exception"); } }