public void UserTest() { IDXEndpoint endpoint = DXEndpoint.Create(); Assert.Catch(typeof(ArgumentNullException), () => { endpoint.User(null); }); Assert.Catch(typeof(ArgumentNullException), () => { endpoint.User(string.Empty); }); Assert.AreEqual(endpoint, endpoint.User("test")); }