public void TaskIsDisposed() { TestArgumentProvider arguments = new TestArgumentProvider(); arguments.Command = "TaskIsDisposed"; SimpleTaskRegistry taskRegistry = new SimpleTaskRegistry(); TestTask task = new TestTask(); taskRegistry.RegisterTask(() => task, "TaskIsDisposed"); TaskExecution execution = Substitute.ForPartsOf <TaskExecution>(arguments, taskRegistry, null); execution.ExecuteTask(); task.DisposeCount.Should().Be(1); }
/// <summary> /// Initializes a new instance of the <see cref="ArgumentProviderTest"/> class. /// </summary> public ArgumentProviderTest() { this.provider = Substitute.For <TestArgumentProvider>(); }
/// <summary> /// Initializes a new instance of the <see cref="ArgumentProviderTest"/> class. /// </summary> public ArgumentProviderTest() { this.provider = Substitute.For<TestArgumentProvider>(); }