Пример #1
0
 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);
 }
Пример #2
0
        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);
        }
Пример #3
0
 public void DelTypedHistory(TypedHistory d)
 {
     typeds_.Del(d);
 }
Пример #4
0
 public void ModTypedHistory(TypedHistory d)
 {
     typeds_.Mod(d);
 }
Пример #5
0
 public void AddTypedHistory(TypedHistory d)
 {
     typeds_.Add(d);
 }