ChatterServiceTest.ChatterSoapServiceTest.TestGetUserIdByEmptyEmployeeId C# (CSharp) Method

TestGetUserIdByEmptyEmployeeId() private method

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