public void Invoke_NullDomain() { Assert.Throws(typeof(ArgumentNullException), () => { RemoteFunc.Invoke(null, () => { return 1; }); }); }