public void LoadFromString_WithNullStringInput_ShouldThrowArgumentNullException() { string input = null; var option = new BypassFileExtensionOption(); Action testAction = () => option.LoadFromString(input); testAction.ShouldThrow <ArgumentNullException>(); }
public void LoadFromString_WithValidFilePath_StringValueShouldMatchInput() { string input = "/test/file.txt"; var option = new BypassFileExtensionOption(); option.LoadFromString(input); option.GetStringValue() .ShouldBe(input); }