public void GetObjectDataTest() { CustomException target = new CustomException(); SerializationInfo info = new SerializationInfo(typeof(CustomException), new FormatterConverter()); StreamingContext context = new StreamingContext(); target.GetObjectData(info, context); Assert.IsNotNull(info); Assert.IsNotNull(context); }