private void AssertPrototype(XmlApplicationContext ctx, string id) { Assert.IsFalse(ctx.IsSingleton(id), "Object with id '{0}' should be of prototype scope.", id); }