Example #1
0
        public void InValidateBlastSearchRecordMetadataGetObjectData()
        {
            SerializationInfo info    = null;
            StreamingContext  context = new StreamingContext(StreamingContextStates.All);

            BlastSearchRecord bsrObj = new BlastSearchRecord();

            try
            {
                bsrObj.GetObjectData(info, context);
                Assert.Fail();
            }
            catch (ArgumentNullException)
            {
                Console.WriteLine("Ncbi Blast P2 : InValidated the GetObjectData() method of BlastSearchRecord successfully.");
                ApplicationLog.WriteLine("Ncbi Blast P2 : InValidated the GetObjectData() method of BlastSearchRecord successfully.");
            }
        }