Interface BuilderBehavior.IPropertyAssertions<TValue>
Assertions provided by the property-specific helpers.
Namespace: LaunchDarkly.TestHelpers
Assembly: LaunchDarkly.TestHelpers.dll
Syntax
public interface IPropertyAssertions<TValue>
Type Parameters
Name | Description |
---|---|
TValue | type of the property |
Methods
AssertCanSet(TValue)
Asserts that calling the setter for a specific value causes the property to have that value.
Declaration
void AssertCanSet(TValue newValue)
Parameters
Type | Name | Description |
---|---|---|
TValue | newValue | the expected value |
AssertDefault(TValue)
Asserts that the property has the expected value when it has not been set.
Declaration
void AssertDefault(TValue defaultValue)
Parameters
Type | Name | Description |
---|---|---|
TValue | defaultValue | the expected value |
AssertSetIsChangedTo(TValue, TValue)
Asserts that calling the setter for a specific value causes the property to have another specific value for the corresponding property.
Declaration
void AssertSetIsChangedTo(TValue attemptedValue, TValue resultingValue)
Parameters
Type | Name | Description |
---|---|---|
TValue | attemptedValue | the value to pass to the setter |
TValue | resultingValue | the expected result value |