File tree Expand file tree Collapse file tree
SharpPasswordManager.Tests Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ namespace SharpPasswordManager.Tests
66 public class AutenticatorTests
77 {
88 [ Test ]
9- public void Encrypt_ResultDifferentFromTheOriginal ( )
9+ public void Autenticate_WithSamePassword ( )
1010 {
1111 string encryptedPassword = "12345" ;
1212 string password = "12345" ;
@@ -17,5 +17,18 @@ public void Encrypt_ResultDifferentFromTheOriginal()
1717
1818 Assert . That ( result , Is . EqualTo ( expected ) ) ;
1919 }
20+
21+ [ Test ]
22+ public void Autenticate_WithDifferentPasswords ( )
23+ {
24+ string encryptedPassword = "12345" ;
25+ string password = "54321" ;
26+ Autenticator autenticator = new Autenticator ( ) ;
27+
28+ bool result = autenticator . Autenticate ( password , encryptedPassword ) ;
29+ bool expected = false ;
30+
31+ Assert . That ( result , Is . EqualTo ( expected ) ) ;
32+ }
2033 }
2134}
You can’t perform that action at this time.
0 commit comments