public void Should_Set_Production_Flag_True_() { // Given NpmPruneSettings settings = new NpmPruneSettings(); // When settings.ForProduction(); // Then settings.Production.ShouldBe(true); }
public void Should_Throw_If_Settings_Are_Null() { // Given NpmPruneSettings settings = null; // When var result = Record.Exception(() => settings.ForProduction()); // Then result.IsArgumentNullException("settings"); }
public void Should_Set_Production_Flag_False() { // Given NpmPruneSettings settings = new NpmPruneSettings() { Production = true }; // When settings.ForProduction(false); // Then settings.Production.ShouldBe(false); }