Exemple #1
0
 public void GivenAUser_WhenThePasswordHasBeenSet_AndTheSamePasswordIsCompared_ThenTheComparisonSucceeds()
 {
     var u = new User("email", "password");
     u.MatchPassword("password").Should().BeTrue();
 }
Exemple #2
0
 public void GivenAUser_WhenThePasswordHasBeenSet_AndADifferentPasswordIsCompared_ThenTheComparisonFails()
 {
     var u = new User("email", "password");
     u.MatchPassword("password1").Should().BeFalse();
 }