Skip to content

Commit bdb20dc

Browse files
committed
Autenticator tests changed
1 parent 5cf12d1 commit bdb20dc

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

SharpPasswordManager.Tests/AutenticatorTests.cs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)