Esempio n. 1
0
 public void setMementoTest_notMemento()
 {
     Invert target = new Invert();
     List<Memento> memList = new List<Memento>();
     Memento memento = new Memento("Invert", memList);
     target.setMemento(memento);
     Assert.IsTrue(target.getMemento().state is Invert, "Invert doesn't care about Memento's, it does not need any.");
 }
Esempio n. 2
0
 public void setMementoTest_empty()
 {
     Invert target = new Invert();
     Memento memento = null;
     Memento expected = memento;
     target.setMemento(expected);
     Assert.AreEqual(expected, null);
 }