Beispiel #1
0
 public void getMementoTest()
 {
     Invert target = new Invert();
     Memento actual;
     actual = target.getMemento();
     Assert.IsTrue(actual.state is Invert, "State object of the beginning Memento is not Invert");
 }
Beispiel #2
0
 public void getMementoTest_isMemento()
 {
     Invert target = new Invert();
     Memento actual;
     actual = target.getMemento();
     Assert.IsTrue(actual is Memento, "Mememento is not set at the start.");
 }
Beispiel #3
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.");
 }