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"); }
public void RemoteCommandRejectsUnremoteableContext() { Zetetic.Chain.Generic.RemoteCommand cmd = new Zetetic.Chain.Generic.RemoteCommand(); cmd.Execute(new NonRemoteableContext()); Assert.Fail("Should not get here"); }