ChatterServiceTest.ChatterSoapServiceTest.TestGetUserIWithNullEmployeeId C# (CSharp) Method

TestGetUserIWithNullEmployeeId() private method

private TestGetUserIWithNullEmployeeId ( ) : void
return void
        public void TestGetUserIWithNullEmployeeId()
        {
            IChatterSoapService service = new ChatterService.ChatterSoapService(_url);
            try
            {
                string id = service.GetUserId(null);
                Assert.Fail("GetUserId method should throw and exception Employee ID is null");
            }
            catch (Exception ex)
            {
                Assert.AreEqual("Employee Id is required", ex.Message);
            }
        }