public void WithoutStrategy_properly_removes() { var builder = new DynamicCommandBuilder("myCommand", new ActionCommandStrategy(() => { }), null) .OnBackgroundThread() .Locked() .DisableWhileExecuting(); builder.Strategies.Should().HaveCount(3); builder.WithoutStrategy <BackgroundCommandStrategy>(); builder.Strategies.Should().HaveCount(2); }