Exemplo n.º 1
0
 private DiffObject CreateDiff(DiffObject parent, DiffKind kind, object source, object target, int path)
 {
     return(new DiffObject()
     {
         Path = parent.Path + (string.IsNullOrEmpty(parent.Path) ? string.Empty : ".") + path.ToString(),
         SourceValue = source,
         TargetValue = target,
         DiffKind = kind
     });
 }
 private BaselineScaledColumn(DiffKind kind)
 {
     Kind = kind;
 }
Exemplo n.º 3
0
 private BaselineDiffColumn(DiffKind kind)
 {
     Kind = kind;
 }
Exemplo n.º 4
0
 private BaselineScaledColumn(DiffKind kind)
 {
     Kind = kind;
 }
 private BaselineDiffColumn(DiffKind kind)
 {
     Kind = kind;
 }
Exemplo n.º 6
0
 private BaselineDiffColumn(DiffKind kind, int?percentile = null)
 {
     Kind       = kind;
     Percentile = percentile;
 }
Exemplo n.º 7
0
 internal PropertyDiff(DiffKind kind, bool inputDiff)
 {
     Kind      = kind;
     InputDiff = inputDiff;
 }
 private BaselineDiffColumn(DiffKind kind, int? percentile = null)
 {
     Kind = kind;
     Percentile = percentile;
 }
 private BaselineScaledColumn(DiffKind kind, Hypothesis hypothesis = null)
 {
     Kind            = kind;
     this.hypothesis = hypothesis;
 }
Exemplo n.º 10
0
 /// <summary>
 /// Creates a diff.
 /// </summary>
 /// <param name="kind">The diff kind which indicates whether there is a change over the range covered by the diff.</param>
 /// <param name="leftRange">The range of the left document that is affected.</param>
 /// <param name="rightRange">The range of the right document that is affected.</param>
 public Diff(DiffKind kind, Range leftRange, Range rightRange)
 {
     this.leftRange  = leftRange;
     this.rightRange = rightRange;
     this.kind       = kind;
 }