public void Application_can_be_build_only_once() { // Arrange var builder = new CliApplicationBuilder().AddCommandsFromThisAssembly(); // Act Action act = () => { builder.Build(); builder.Build(); }; // Assert act.Should().Throw <InvalidOperationException>(); }
public void Build_Test() { // Arrange var builder = new CliApplicationBuilder(); // Act builder.Build(); }