What are you trying to achieve with your test? All this test will be achieved here to validate the underlying Entity Framework ContextObject, which is meaningless to you.
If you are trying to run additional tests for which ObjectContext is a dependency, you can mock ObjectContext with an interface. We create our own IObjectContext user interface, which we extract from the T4 generated by ContextObject from our model.
source share