Exemplo n.º 1
0
        public void Disposable_RunResult_features_are_disposed_when_RunResult_is_disposed()
        {
            var wasDisposed = false;

            var result = new RunResult(true);

            result.AddFeature(new DisposableFeature(Disposable.Create(() => wasDisposed = true)));

            result.Dispose();

            wasDisposed.Should().BeTrue();
        }