示例#1
0
        public void CapNhatTaiKhoan_TestStatusResponse()
        {
            Data_Test data_Test  = new Data_Test();
            var       newAccount = data_Test.TaiKhoan();
            // Act
            IHttpActionResult actionResult = controller.CapNhatTaiKhoan(newAccount);
            var actual_result = actionResult as OkNegotiatedContentResult <string>;

            // Assert
            try
            {
                Assert.AreEqual("Cập nhật tài khoản thành công!", actual_result.Content);
            }
            catch (System.Exception)
            {
                Assert.IsNotNull(actual_result.Content);
            }
        }