Ejemplo n.º 1
0
 public void TestBasicRemotingContext()
 {
     RemotingCallContext context = new RemotingCallContext();
     tester.CallMultiple((o, cs) =>
                             {
                                 context.SetData("Test", o);
                                 cs.Switch();
                                 Assert.That(context.GetData("Test"), Is.EqualTo(o));
                             }, 3, new Object[] {"A", "B", "C"});
     tester.AssertAll();
 }
Ejemplo n.º 2
0
 public void ReturnNothingIfKeyNotPresent()
 {
     RemotingCallContext sut = new RemotingCallContext();
     Assert.That(sut.GetData("unknownkey"), Is.Null);
 }