예제 #1
0
 public void RemoteCommandAcceptsRemoteableContext()
 {
     Zetetic.Chain.Generic.RemoteCommand cmd = new Zetetic.Chain.Generic.RemoteCommand();
     try
     {
         cmd.Execute(new Zetetic.Chain.ContextBase());
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex.Message + " :: " + ex.StackTrace);
         Assert.IsNotInstanceOfType(ex, typeof(Zetetic.Chain.Generic.ContextNotRemoteableException));
         return;
     }
     Assert.Fail("Should not get here");
 }
예제 #2
0
 public void RemoteCommandRejectsUnremoteableContext()
 {
     Zetetic.Chain.Generic.RemoteCommand cmd = new Zetetic.Chain.Generic.RemoteCommand();
     cmd.Execute(new NonRemoteableContext());
     Assert.Fail("Should not get here");
 }