Struct AssertionResult
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: NBench.Sdk
Assembly: NBench.dll
Syntax
public struct AssertionResult
Constructors
AssertionResult(MetricName, String, Boolean)
Declaration
public AssertionResult(MetricName metricName, string message, bool passed)
Parameters
| Type | Name | Description |
|---|---|---|
| MetricName | metricName | |
| System.String | message | |
| System.Boolean | passed |
Properties
Message
Declaration
public string Message { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
MetricName
Declaration
public MetricName MetricName { get; }
Property Value
| Type | Description |
|---|---|
| MetricName |
Passed
Declaration
public bool Passed { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Methods
CreateResult(MetricName, String, Double, Assertion)
Declaration
public static AssertionResult CreateResult(MetricName name, string unitName, double value, Assertion assertion)
Parameters
| Type | Name | Description |
|---|---|---|
| MetricName | name | |
| System.String | unitName | |
| System.Double | value | |
| Assertion | assertion |
Returns
| Type | Description |
|---|---|
| AssertionResult |