CapRaffle.UnitTests.AccountControllerTests.Can_Change_Password C# (CSharp) Method

Can_Change_Password() private method

private Can_Change_Password ( ) : void
return void
        public void Can_Change_Password()
        {
            // Arrange
            ChangePasswordViewModel model = new ChangePasswordViewModel
            {
                Email = "[email protected]",
                Password = "newPass123",
                PasswordAgain = "newPass123"
            };

            // Act
            ActionResult res = accountController.ChangePassword(model);

            // Assert
            mock.Verify(m => m.ChangePassword(model.Email, model.Password));
            Assert.IsInstanceOf(typeof(ViewResult), res);
        }