public void ModContentTest() { var n = System.DateTime.Now; TypedHistoryWrapper target = new TypedHistoryWrapper { Content = new TypedHistory { Content = "hoge" } }; TypedHistoryWrapper other = new TypedHistoryWrapper { Content = new TypedHistory { Content = "mod", LastTyped = n, } }; target.ModContent(other); Assert.AreEqual(SyncState.Modified, target.State); // state is modified Assert.AreEqual("hoge", target.Content.Content); // content.content not change Assert.AreEqual(n, target.Content.LastTyped); // change datetime Assert.AreEqual("selected", target.Content.Type); // type is selected }