// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. using System; using System.Collections.Generic; namespace ReactiveTests.Dummies { internal class DummyEnumerable : IEnumerable { public static readonly DummyEnumerable Instance = new DummyEnumerable(); private DummyEnumerable() { } public IEnumerator GetEnumerator() { throw new NotImplementedException(); } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw new NotImplementedException(); } } internal class NullEnumeratorEnumerable : IEnumerable { public static readonly NullEnumeratorEnumerable Instance = new NullEnumeratorEnumerable(); private NullEnumeratorEnumerable() { } public IEnumerator GetEnumerator() { return null; } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { return GetEnumerator(); } } }