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(); }
public void ReturnNothingIfKeyNotPresent() { RemotingCallContext sut = new RemotingCallContext(); Assert.That(sut.GetData("unknownkey"), Is.Null); }