Ejemplo n.º 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");
 }
Ejemplo n.º 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");
 }