public void With_Valid_String_Digits_With_Four_HexaDecimals() { var guid = System.Guid.NewGuid().ToString("X"); MaybeParsers .GuidExact(guid, GuidFormat.FourHexadecimalWrappedInBrackets) .AssertValue(System.Guid.Parse(guid)); }
public void With_Valid_String_Digits_With_Hyphens_Wrapped_In_Parentheses() { var guid = System.Guid.NewGuid().ToString("P"); MaybeParsers .GuidExact(guid, GuidFormat.DigitsWithHyphensWrappedInParentheses) .AssertValue(System.Guid.Parse(guid)); }
public void With_Valid_String_Digits_Only() { var guid = System.Guid.NewGuid().ToString("N"); MaybeParsers .GuidExact(guid, GuidFormat.DigitsOnly) .AssertValue(System.Guid.Parse(guid)); }
public void With_Valid_String_Digits_With_Hyphens() { var guid = System.Guid.NewGuid().ToString("D"); MaybeParsers .GuidExact(guid, GuidFormat.DigitsWithHyphens) .AssertValue(System.Guid.Parse(guid)); }
public void With_Null_String_Digits_With_Hyphens_Wrapped_In_Parentheses() { MaybeParsers .GuidExact(null, GuidFormat.DigitsWithHyphensWrappedInParentheses) .AssertNone(); }
public void With_Invalid_String_Digits_Only() { MaybeParsers .GuidExact("foobar", GuidFormat.DigitsOnly) .AssertNone(); }
public void With_Null_String_Digits_With_Hyphens() { MaybeParsers .GuidExact(null, GuidFormat.DigitsWithHyphens) .AssertNone(); }
public void With_Null_String_Digits_With_Four_HexaDecimals() { MaybeParsers .GuidExact(null, GuidFormat.FourHexadecimalWrappedInBrackets) .AssertNone(); }
public void With_Null_String_Digits_Only() { MaybeParsers .GuidExact(null, GuidFormat.DigitsOnly) .AssertNone(); }
public void With_Invalid_String_Digits_With_Hyphens_Wrapped_In_Brackets() { MaybeParsers .GuidExact("foobar", GuidFormat.DigitsWithHyphensWrappedInBrackets) .AssertNone(); }
public void With_Invalid_String_Digits_With_Hyphens() { MaybeParsers .GuidExact("foobar", GuidFormat.DigitsWithHyphens) .AssertNone(); }
public void With_Invalid_String_Digits_With_Four_HexaDecimals() { MaybeParsers .GuidExact("foobar", GuidFormat.FourHexadecimalWrappedInBrackets) .AssertNone(); }