public void SpyOnDisposing() { // Arrange var sut = new SpyAgent(); // Act sut.Dispose(); // Assert Assert.True(sut.IsDisposed); }
public async Task SpyOnStarting() { // Arrange var sut = new SpyAgent(); // Act await sut.Start(CancellationToken.None); // Assert Assert.True(sut.HasStarted); }
public void SpyOnStopping() { // Arrange var sut = new SpyAgent(); // Act sut.Stop(); // Assert Assert.True(sut.IsStopped); }