Пример #1
0
 public void GeneratorDoesNotReturnNull()
 {
     var instance = new TokenGenerator();
     var result = instance.generateToken("mark");
     Assert.IsTrue(result != null, "Result is null");
 }
Пример #2
0
 public void GeneratedTokenIsValid()
 {
     var instance = new TokenGenerator();
     var result = instance.Base64Decode(instance.generateToken("mark"));
     Assert.IsTrue(result.Contains("mark"));
 }