public static bool TryParse(string input, out RomanNumber result) { result = null; if (string.IsNullOrWhiteSpace(input)) { return false; } if (!romanNumberRegex.IsMatch(input)) { return false; } result = new RomanNumber {Value = input}; return true; }
public static bool TryParse(string input, out RomanNumber result) { result = null; if (string.IsNullOrWhiteSpace(input)) { return(false); } if (!romanNumberRegex.IsMatch(input)) { return(false); } result = new RomanNumber { Value = input }; return(true); }
public void Constructor_UsigNullEmptyOrWhitespaceStringAsParameter_ThrowsException( [ValueSource(typeof (SymbolGenerator), "GetNullEmptyAndWhitespaceStrings")] string nullEmptyOrWhitespaceString) { RomanNumber romanNumber = new RomanNumber(nullEmptyOrWhitespaceString); }