public void Initialize() { // GIVEN the object cache is disabled #pragma warning disable CS0618 // We don't care about using Server/Client specific cache settings ObjectCache.Initialize(ObjectCacheSettings.DontUseCache); #pragma warning restore CS0618 // AND a DarkRiftReader under test reader = DarkRiftReader.Create(mockMessageBuffer.Object); }