public void DestroyCausesSpecifiedModelToNotBeReturnedByGet() { var matchingCount = 0; var totalCount = 0; var expectedValue = "yet another random string"; DummyModel specifiedModel = null; testObj.Create <DummyModel>(model => { model.value = expectedValue; specifiedModel = model; }); testObj.Create <DummyModel>(); testObj.Destroy <DummyModel>(specifiedModel); foreach (var model in testObj.Get <DummyModel>()) { totalCount++; if (expectedValue == model.value) { matchingCount++; } } Assert.AreEqual(0, matchingCount); Assert.AreEqual(1, totalCount); }