Пример #1
0
 public void Test_CaracteresInvalidos()
 {
     Assert.AreEqual(false, NotVerySecure.Alphanumeric("&)))((("));
 }
Пример #2
0
 public void Test_Espacos()
 {
     Assert.AreEqual(false, NotVerySecure.Alphanumeric("     "));
 }
Пример #3
0
 public void Test_AlfaNum()
 {
     Assert.AreEqual(true, NotVerySecure.Alphanumeric("PassW0rd"));
 }
Пример #4
0
 public void Test_Underline()
 {
     Assert.AreEqual(false, NotVerySecure.Alphanumeric("hello world_"));
 }
Пример #5
0
 public void Test_Alfa()
 {
     Assert.AreEqual(true, NotVerySecure.Alphanumeric("Mazinkaiser"));
 }
Пример #6
0
 public void AlphanumericTest(string input, bool output)
 {
     Assert.Equal(output, NotVerySecure.Alphanumeric(input));
 }