// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT License. // See the LICENSE file in the project root for more information. using System; using System.Collections.Generic; using System.Diagnostics; using System.Reactive.Concurrency; using System.Reactive.Linq; using System.Threading; using System.Threading.Tasks; using Microsoft.Reactive.Testing; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace ReactiveTests.Tests { [TestClass] public class TestSchedulerTest { [TestMethod] public void Test_ArgumentChecking() { ReactiveAssert.Throws(() => new TestScheduler().Start(null)); ReactiveAssert.Throws(() => new TestScheduler().Start(null, 10)); ReactiveAssert.Throws(() => new TestScheduler().Start(() => Observable.Empty(), 10)); ReactiveAssert.Throws(() => new TestScheduler().Start(() => Observable.Empty(), 10, 15, 5)); } } }