public void LoadFromString_WithinvalidOrNullInput_ShouldThrow(string inputStr, Type expectedExceptionType) { var option = new BypassAllAuthenticatedUsersOption(); Action testAction = () => option.LoadFromString(inputStr); testAction.ShouldThrow(expectedExceptionType); }
public void LoadFromString_WithValidInput_StringValueShouldMatchInput(string inputStr) { var option = new BypassAllAuthenticatedUsersOption(); option.LoadFromString(inputStr); option.GetStringValue() .ShouldBe(inputStr); }
public void LoadFromString_WithValidInput_ValueShouldMatchInput(string inputStr, bool expectedValue) { var option = new BypassAllAuthenticatedUsersOption(); option.LoadFromString(inputStr); option.Value .ShouldBe(expectedValue); }