コード例 #1
0
ファイル: MacroTest.cs プロジェクト: PSE-2012/MMWTV
 public void typeTest()
 {
     Macro target = new Macro();
     PluginType actual;
     actual = target.type;
     Assert.AreEqual<PluginType>(PluginType.IMacro, actual);
 }
コード例 #2
0
ファイル: MacroTest.cs プロジェクト: PSE-2012/MMWTV
 public void namePluginTest()
 {
     Macro target = new Macro();
     string actual;
     actual = target.namePlugin;
     Assert.AreEqual<string>("Macro", actual);
 }
コード例 #3
0
ファイル: MacroTest.cs プロジェクト: PSE-2012/MMWTV
 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);
     }
 }
コード例 #4
0
ファイル: MacroTest.cs プロジェクト: PSE-2012/MMWTV
 public void createExtraPluginInstanceTest()
 {
     Macro target = new Macro();
     IPlugin actual;
     actual = target.createExtraPluginInstance();
     Assert.IsInstanceOfType(actual, typeof(Macro));
     Assert.AreNotEqual(target, actual);
 }