public void Remove_Object_InvalidatesCache_IfTrue() { WarmUpCache(_decoratorWithRealData, false); Assert.That(_decoratorWithRealData.IsCacheUpToDate, Is.True); _decoratorWithRealData.Remove(_domainObject); Assert.That(_wrappedData.ToArray(), Is.Empty); Assert.That(_decoratorWithRealData.IsCacheUpToDate, Is.False); }
/// <inheritdoc /> public void CopyTo(Array array, int index) { _dataStrategy.ToArray().CopyTo(array, index); }