-
Notifications
You must be signed in to change notification settings - Fork 0
/
ExperimentResult.cs
52 lines (45 loc) · 1.65 KB
/
ExperimentResult.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
using System;
namespace Experiments
{
/// <summary>
/// Represents the results of an experiment.
/// </summary>
public class ExperimentResult
{
/// <summary>
/// Gets or sets the name of the experiment.
/// </summary>
public String ExperimentName { get; private set; }
/// <summary>
/// Gets or sets the name of the IControl value.
/// </summary>
public String ControlName { get; private set; }
/// <summary>
/// Gets or sets the name of the ICandidate value.
/// </summary>
public String CandidateName { get; private set; }
/// <summary>
/// Gets or sets whether the experiment results matched.
/// </summary>
public Boolean Matched { get; private set; }
/// <summary>
/// Gets or sets any exceptions encountered while processing the ICandidate value.
/// </summary>
public Exception Exception { get; private set; }
public ExperimentResult(String experimentName, String controlName, String candidateName, Boolean matched)
{
ExperimentName = experimentName;
ControlName = controlName;
CandidateName = candidateName;
Matched = matched;
}
public ExperimentResult(String experimentName, String controlName, String candidateName, Exception exception)
{
ExperimentName = experimentName;
ControlName = controlName;
CandidateName = candidateName;
Matched = false;
Exception = exception;
}
}
}