コード例 #1
0
        public async Task Execute_Should_Run()
        {
            var counter = 0;

            var info = new Fake();

            info.StatusChanged += (_, __) => counter++;
            info.TimeCompleted.Should().BeNull();

            await info.ExecuteAsync(_thing, _provider);

            info.Status.Should().Be(ActionStatus.Completed);
            info.TimeCompleted.Should().NotBeNull();
            counter.Should().Be(3);
        }