/// <summary> /// Check that the tested value has properties that respect a contract. /// </summary> /// <param name="options">The options.</param> /// <returns></returns> public IPropertiesCheckable <T> HavePropertiesThat(PropertiesComparisonOptions options = null) { if (options == null) { options = PropertiesComparisonOptions.Default; } return(new PropertiesCheckable <T>(_factory, _value, options)); }
/// <summary> /// Initializes a new instance of the <see cref="PropertiesCheckable{T}" /> class. /// </summary> /// <param name="factory">The factory.</param> /// <param name="value">The value.</param> /// <param name="options">The options.</param> public PropertiesCheckable(IExceptionFactory factory, T value, PropertiesComparisonOptions options) { _factory = factory; _value = value; _options = options; }