public void Should_Set_AlwaysAuth_To_True() { // Given var settings = new NpmAddUserSettings(); // When settings.AlwaysAuthenticate(); // Then Assert.True(settings.AlwaysAuth); }
public void Should_Throw_If_Settings_Are_Null() { // Given NpmAddUserSettings settings = null; // When var result = Record.Exception(() => settings.AlwaysAuthenticate()); // Then result.IsArgumentNullException("settings"); }