public void setMementoTest_range() { MSE_Accessor target = new MSE_Accessor(); Memento memento = new Memento("RANGE", -1); target.setMemento(memento); Assert.IsTrue((int)target.getMemento().state > -1, "Invailed Range for MSE. Range [0, 3]"); memento = new Memento("RANGE", 4); target.setMemento(memento); Assert.IsTrue((int)target.getMemento().state < 4, "Invailed Range for MSE. Range [0, 3]"); }
public void setMementoTest() { MSE_Accessor target = new MSE_Accessor(); Memento memento = new Memento("MSE", 2); target.setMemento(memento); Assert.AreEqual(target.getMemento().state, 2, "propertiesView Radio Button could not be set."); }