Example #1
0
        public void EditCurrentAccountWithBadArgumentsThrowsException(Guid sessionId, int accountId, string displayName)
        {
            // Arrange
            var service = new ClientService();

            // Act and assert
            try
            {
                service.EditCurrentAccount(sessionId, accountId, displayName);
            }
            catch (ArgumentException)
            {
                Assert.Pass("ArgumentException was thrown as expected.");
            }

            Assert.Fail("ArgumentException was expected to be thrown.");
        }