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