Пример #1
0
        private static string BuildMessage(Results results)
        {
            var sb = new StringBuilder();

            sb.AppendLine($"Experiment {results.Name} observations mismatched:");
            sb.AppendLine($"  Control: {results.Control.Result}");
            sb.AppendLine($"  Trial: {results.Trial.Result}");

            return sb.ToString();
        }
Пример #2
0
 public MismatchException(Results results)
     : base(BuildMessage(results))
 {
 }
Пример #3
0
 public MismatchException(Results results)
     : base(BuildMessage(results))
 {
 }