/// <summary> /// Check that the properties are equal to properties of another type /// </summary> /// <param name="expected">The expected.</param> /// <param name="message">The message.</param> /// <exception cref="PropertiesCheckFailure{T}"></exception> public void AreEqualToPropertiesOf(T expected, string message = null) { var trace = new CheckingTrace(); if (!ObjectComparer.PropertiesAreEqual(_value, expected, trace, _options)) { // ReSharper disable once UnthrowableException throw _factory.Build(new PropertiesCheckFailure <T>(CheckType.PropertiesEqual, _value, expected, trace, message)); } }