Example #1
0
 public string JsonSummarization(SummaryOutputDisplayMethods OutputDisplay = SummaryOutputDisplayMethods.OnlyMismatch, bool IndentOutput = true)
 {
     switch (OutputDisplay)
     {
     case SummaryOutputDisplayMethods.OnlyMismatch:
         return(JsonConvert.SerializeObject(this, IndentOutput ? Formatting.Indented : Formatting.None));
     }
     throw new Exception("How the hell did you even get here?");
 }
Example #2
0
 public bool GetMatchDetailsJson(out string Json, SummaryOutputDisplayMethods OutputDisplay = SummaryOutputDisplayMethods.OnlyMismatch, bool IndentOutput = true)
 {
     Json = JsonSummarization(OutputDisplay, IndentOutput);
     return(Matches);
 }