I took a method from this post (accepted answer code) that serializes object so that I can get a new copy of that object.
Now I am trying to do a unit test but everytime I gets to the object that I am trying to clone it comes up with
Tests.ServiceLayer.TestTService.Test_Something: System.Runtime.Serialization.SerializationException : Type 'Moq.Interceptor' in Assembly 'Moq, Version=3.1.416.3, Culture=neutral, PublicKeyToken=69f491c39445e920' is not marked as serializable.
So it seems to be that my mocked up object has some stuff in it that the clone is trying to copy but can't.
I am not unsure how to tell it to ignore these things. I would mock out the clone but I am using an extension method that I don't think I can mock out.