public void ClearStrategies_properly_clears() { var builder = new DynamicCommandBuilder("myCommand", new ActionCommandStrategy(() => { }), null) .OnBackgroundThread() .Locked() .DisableWhileExecuting(); builder.Strategies.Should().NotBeEmpty(); builder.ClearStrategies(); builder.Strategies.Should().BeEmpty(); }