Imported Upstream version 3.6.0

Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
This commit is contained in:
Jo Shields
2014-08-13 10:39:27 +01:00
commit a575963da9
50588 changed files with 8155799 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
using System;
namespace ReactiveTests.Dummies
{
class DummyDisposable : IDisposable
{
public static readonly DummyDisposable Instance = new DummyDisposable();
public void Dispose()
{
throw new NotImplementedException();
}
}
}

View File

@@ -0,0 +1,45 @@
// 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.Dummies
{
class DummyEnumerable<T> : IEnumerable<T>
{
public static readonly DummyEnumerable<T> Instance = new DummyEnumerable<T>();
private DummyEnumerable()
{
}
public IEnumerator<T> GetEnumerator()
{
throw new NotImplementedException();
}
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()
{
throw new NotImplementedException();
}
}
class NullEnumeratorEnumerable<T> : IEnumerable<T>
{
public static readonly NullEnumeratorEnumerable<T> Instance = new NullEnumeratorEnumerable<T>();
private NullEnumeratorEnumerable()
{
}
public IEnumerator<T> GetEnumerator()
{
return null;
}
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()
{
return GetEnumerator();
}
}
}

View File

@@ -0,0 +1,46 @@
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
using System;
namespace ReactiveTests.Dummies
{
static class DummyFunc<T>
{
public static readonly Func<T> Instance = () => { throw new NotImplementedException(); };
}
static class DummyFunc<T, U>
{
public static readonly Func<T, U> Instance = t => { throw new NotImplementedException(); };
}
static class DummyFunc<T, U, V>
{
public static readonly Func<T, U, V> Instance = (t, u) => { throw new NotImplementedException(); };
}
static class DummyFunc<T, U, V, W>
{
public static readonly Func<T, U, V, W> Instance = (t, u, v) => { throw new NotImplementedException(); };
}
static class DummyFunc<T, U, V, W, X>
{
public static readonly Func<T, U, V, W, X> Instance = (t, u, v, w) => { throw new NotImplementedException(); };
}
static class DummyAction
{
public static readonly Action Instance = () => { throw new NotImplementedException(); };
}
static class DummyAction<T>
{
public static readonly Action<T> Instance = t => { throw new NotImplementedException(); };
}
static class DummyAction<T, U>
{
public static readonly Action<T, U> Instance = (t, u) => { throw new NotImplementedException(); };
}
}

View File

@@ -0,0 +1,20 @@
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
using System;
namespace ReactiveTests.Dummies
{
class DummyObservable<T> : IObservable<T>
{
public static readonly DummyObservable<T> Instance = new DummyObservable<T>();
DummyObservable()
{
}
public IDisposable Subscribe(IObserver<T> observer)
{
throw new NotImplementedException();
}
}
}

View File

@@ -0,0 +1,30 @@
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
using System;
namespace ReactiveTests.Dummies
{
class DummyObserver<T> : IObserver<T>
{
public static readonly DummyObserver<T> Instance = new DummyObserver<T>();
DummyObserver()
{
}
public void OnNext(T value)
{
throw new NotImplementedException();
}
public void OnError(Exception exception)
{
throw new NotImplementedException();
}
public void OnCompleted()
{
throw new NotImplementedException();
}
}
}

View File

@@ -0,0 +1,36 @@
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
using System;
using System.Reactive.Concurrency;
namespace ReactiveTests.Dummies
{
class DummyScheduler : IScheduler
{
public static readonly DummyScheduler Instance = new DummyScheduler();
DummyScheduler()
{
}
public DateTimeOffset Now
{
get { return DateTimeOffset.MinValue; }
}
public IDisposable Schedule<TState>(TState state, Func<IScheduler, TState, IDisposable> action)
{
throw new NotImplementedException();
}
public IDisposable Schedule<TState>(TState state, TimeSpan dueTime, Func<IScheduler, TState, IDisposable> action)
{
throw new NotImplementedException();
}
public IDisposable Schedule<TState>(TState state, DateTimeOffset dueTime, Func<IScheduler, TState, IDisposable> action)
{
throw new NotImplementedException();
}
}
}