private void CheckEmpty(ITestableReplicationProviderInside provider) { if (provider.GetStoredObjects(typeof(Replicated)).GetEnumerator().MoveNext()) { throw new Exception(provider.GetName() + " is not empty"); } }