public void SetFirstLevelPropery_Fail() { var expected = new PropertyMismatch("user1"); var actual = default(PropertyMismatch); try { actual = Remute.Default.With(expected, x => x.NickName, "user2"); } catch (Exception ex) when(ex.Message == $"Unable to construct object of type '{typeof(PropertyMismatch).Name}'. There is no constructor parameter matching property '{nameof(actual.NickName)}'.") { return; } Assert.Fail(); }
public PropertyMismatchContainer(PropertyMismatch propertyMismatch) { PropertyMismatch = propertyMismatch; }