Exemple #1
0
                public void UpdateHashFalse_SetsUpdateHashToFalse()
                {
                    var result = new PasswordValidateResult(valid: true, updateHash: false);

                    Assert.False(result.UpdateHash);
                }
Exemple #2
0
                public void UpdateHashTrue_SetsUpdateHashToTrue()
                {
                    var result = new PasswordValidateResult(valid: true, updateHash: true);

                    Assert.True(result.UpdateHash);
                }
Exemple #3
0
                public void DefaultUpdateHash_SetsUpdateHashToFalse()
                {
                    var result = new PasswordValidateResult(valid: true);

                    Assert.False(result.UpdateHash);
                }
Exemple #4
0
                public void ValidTrue_SetsValidToTrue()
                {
                    var result = new PasswordValidateResult(valid: true);

                    Assert.True(result.Valid);
                }
Exemple #5
0
                public void ValidFalse_SetsValidToFalse()
                {
                    var result = new PasswordValidateResult(valid: false);

                    Assert.False(result.Valid);
                }
Exemple #6
0
                public void WhenCalled_SetsUpdateHashToFalse()
                {
                    var result = new PasswordValidateResult();

                    Assert.False(result.UpdateHash);
                }
Exemple #7
0
                public void WhenCalled_SetsValidToFalse()
                {
                    var result = new PasswordValidateResult();

                    Assert.False(result.Valid);
                }