public void ThrowAnExceptionWhenStartedAfterDisposed() { var target = new AutomationRuntime(); target.Dispose(); Assert.Throws <ObjectDisposedException>(() => target.Start()); }
public void StartsTheProcessor() { using var target = new AutomationRuntime(); target.Add(processor.Object); target.Start(); processor.Verify(o => o.Start(), Times.Once); }