public void ContentTest() { TypedHistoryWrapper target = new TypedHistoryWrapper(); TypedHistory expected = new TypedHistory { Content = "", Type = "text", LastTyped = System.DateTime.Now }; TypedHistory actual; target.Content = expected; actual = target.Content; Assert.AreEqual(expected, actual); }
public void IsSameContentTest() { TypedHistory hoge = new TypedHistory { Content = "hoge" }; TypedHistory huga = new TypedHistory { Content = "huga" }; TypedHistoryWrapper target = new TypedHistoryWrapper { Content = hoge }; TypedHistoryWrapper other = new TypedHistoryWrapper { Content = huga }; bool expected = false; bool actual; actual = target.IsSameContent(other); Assert.AreEqual(expected, actual); other = new TypedHistoryWrapper { Content = hoge }; expected = true; actual = target.IsSameContent(other); Assert.AreEqual(expected, actual); }
public void DelTypedHistory(TypedHistory d) { typeds_.Del(d); }
public void ModTypedHistory(TypedHistory d) { typeds_.Mod(d); }
public void AddTypedHistory(TypedHistory d) { typeds_.Add(d); }