Testing the push method (TODO coherence between return code a physical result)

This commit is contained in:
2024-03-09 21:43:56 +00:00
parent e69462999e
commit 89e1b5a235
10 changed files with 191 additions and 78 deletions

View File

@ -12,20 +12,6 @@ namespace isn.tests
{
public class Tests
{
[Fact]
public void HaveADefaultDataProtector()
{
string pass = "a lame and big pass";
isn.IDataProtector _protector = new isn.DefaultDataProtector();
string protectedPassword = _protector.Protect(pass);
string unprotectedPassword = _protector.UnProtect(protectedPassword);
Console.WriteLine(protectedPassword);
Assert.Equal(pass, unprotectedPassword);
Assert.True(protectedPassword != null);
Assert.True(protectedPassword.Length > 0);
}
[Fact]
public async Task TestHttpClient()
{