protected override void OnCompleted(IShellResult result) { Helper.ThrowIf <TypescriptNotInstalledException>(result.Error); logger.Debug("Typescript is installed"); NextStep?.Invoke(); }
public async Task Task_ShouldNotLog() { // arrange IShellResult taskResult = A.Dummy <IShellResult>(); A.CallTo(() => decoratee.Task).Returns(Task.FromResult(taskResult)); // act var result = await sut.Task; // assert A.CallTo(decoratee).MustHaveHappenedOnceExactly(); A.CallTo(logger).MustNotHaveHappened(); result.Should().Be(taskResult); }
protected override void OnCompleted(IShellResult result) { logger.Debug("Installed typescript"); NextStep?.Invoke(); }
protected override void OnCompleted(IShellResult result) { Helper.ThrowIf(result.Error, "Failed to install typescript"); NextStep?.Invoke(); }
private void OnCompleted(IShellResult result) { logger.Debug(result.Output); }
protected abstract void OnCompleted(IShellResult result);