Having a EF Context and a Testenity I want to get the following test to work.
TestEntity testEntity = new TestEntity() { Name = "Hello World" };
context.TestEntities.AddObject(testEntity);
// missing Code
Assert.AreEqual(1, context.TestEntities.Count(), "Entity not in context!");
I know that it works with SaveChanges() but I do not want to save the Entity to the datasource.