| 1234567891011121314151617181920212223242526272829 |
- // 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<ArgumentNullException>(() => new TestScheduler().Start<int>(null));
- ReactiveAssert.Throws<ArgumentNullException>(() => new TestScheduler().Start<int>(null, 10));
- ReactiveAssert.Throws<ArgumentOutOfRangeException>(() => new TestScheduler().Start(() => Observable.Empty<int>(), 10));
- ReactiveAssert.Throws<ArgumentOutOfRangeException>(() => new TestScheduler().Start(() => Observable.Empty<int>(), 10, 15, 5));
- }
- }
- }
|