public void Should_Throw_If_Library_Is_WhiteSpace() { // Given var settings = new LibManUninstallSettings(); // When var result = Record.Exception(() => settings.SetLibrary(" ")); // Then result.IsArgumentNullException("libraryName"); }
public void Should_Throw_If_Settings_Are_Null() { // Given LibManUninstallSettings settings = null; // When var result = Record.Exception(() => settings.SetLibrary("jquery")); // Then result.IsArgumentNullException("settings"); }
public void Should_Set_Library() { // Given var settings = new LibManUninstallSettings(); var libraryName = "jquery"; // When settings.SetLibrary(libraryName); // Then settings.Library.ShouldBe(libraryName); }