} // Has a public setter so that individual test cases can override. By default, it's set to the Utf8 character length of Text public sealed override string ToString() { // // Take good care of this method: it affects Xunit output and makes a lot of difference in how annoying test investigations are. // string formatString = (FormatSymbol == default) ? "default" : FormatSymbol.ToString(); return($"[Parse{typeof(T).Name} '{Text}',{formatString} to {(ExpectedSuccess ? ExpectedValue.DisplayString() : "(should-not-parse)")})]"); }
public override int GetHashCode() => FormatSymbol.GetHashCode() ^ Text.GetHashCode();