Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

28 lines
652 B
C#

// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
using System;
using System.Collections.Generic;
namespace ReactiveTests.Tests
{
class RogueEnumerable<T> : IEnumerable<T>
{
private readonly Exception _ex;
public RogueEnumerable(Exception ex)
{
_ex = ex;
}
public IEnumerator<T> GetEnumerator()
{
throw _ex;
}
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()
{
throw new NotImplementedException();
}
}
}