public void LoginTest() { remoteObjectTestProxy.Initialize(RemoteObjectTestProxy.TrustedGatewayDestination, AMFObjectEncoding.AMF3); remoteObjectTestProxy.SetCredentials("user", "password"); MethodResult result = remoteObjectTestProxy.InvokeMethod("test", "a", "b", "c"); AssertSuccessfulResult(result); }