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

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

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

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

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

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

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

                    Assert.False(result.Valid);
                }