コード例 #1
0
        public void WhenIsDifferenctPassword_ShouldReturnFalse()
        {
            //Arrange
            var service = new CryptService();

            //Act
            var result = service.IsValid("", PasswordHash);

            //Assert
            Assert.False(result);
        }
コード例 #2
0
        public void WhenIsTestPassword_ShouldReturnTrue()
        {
            //Arrange
            var service = new CryptService();

            //Act
            var result = service.IsValid(Password, PasswordHash);

            //Assert
            Assert.True(result);
        }