Example #1
0
        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();
        }
Example #2
0
 public PropertyMismatchContainer(PropertyMismatch propertyMismatch)
 {
     PropertyMismatch = propertyMismatch;
 }