Example #1
0
 public void typeTest()
 {
     Macro target = new Macro();
     PluginType actual;
     actual = target.type;
     Assert.AreEqual<PluginType>(PluginType.IMacro, actual);
 }
Example #2
0
 public void namePluginTest()
 {
     Macro target = new Macro();
     string actual;
     actual = target.namePlugin;
     Assert.AreEqual<string>("Macro", actual);
 }
Example #3
0
 public void setMementoTest_null()
 {
     Macro target = new Macro();
     Memento memento = null;
     try
     {
         target.setMemento(memento);
         Assert.Fail("Macro should have raised an exception if setMemento is called with null.");
     }
     catch (Exception exc)
     {
         Assert.IsTrue(true, "Macro has reacted as expected, exception message: \n" + exc.Message);
     }
 }
Example #4
0
 public void createExtraPluginInstanceTest()
 {
     Macro target = new Macro();
     IPlugin actual;
     actual = target.createExtraPluginInstance();
     Assert.IsInstanceOfType(actual, typeof(Macro));
     Assert.AreNotEqual(target, actual);
 }