public void ValidateSparseSequenceGetObjectData() { SerializationInfo info = new SerializationInfo(typeof(SparseSequence), new FormatterConverter()); StreamingContext context = new StreamingContext(StreamingContextStates.All); SparseSequence sparseSeqObj = CreateSparseSequence(Alphabets.DNA, 0); sparseSeqObj.GetObjectData(info, context); // Validate if there are no exceptions from the public method. Assert.IsNotNull(sparseSeqObj); Console.WriteLine( "SparseSequenceBVT: Validation of GetObjectData() is completed"); ApplicationLog.WriteLine( "SparseSequenceBVT: Validation of GetObjectData() is completed"); }