示例#1
0
        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);
        }
示例#3
0
 protected override void OnCompleted(IShellResult result)
 {
     logger.Debug("Installed typescript");
     NextStep?.Invoke();
 }
示例#4
0
        protected override void OnCompleted(IShellResult result)
        {
            Helper.ThrowIf(result.Error, "Failed to install typescript");

            NextStep?.Invoke();
        }
示例#5
0
 private void OnCompleted(IShellResult result)
 {
     logger.Debug(result.Output);
 }
示例#6
0
 protected abstract void OnCompleted(IShellResult result);