示例#1
0
 public void using_reader()
 {
     Assert.Equal(3, InverseCaptcha.WithReader("1122"));
     Assert.Equal(4, InverseCaptcha.WithReader("1111"));
     Assert.Equal(0, InverseCaptcha.WithReader("1234"));
     Assert.Equal(9, InverseCaptcha.WithReader("91212129"));
 }
示例#2
0
 public void using_linq()
 {
     Assert.Equal(3, InverseCaptcha.WithLinq("1122"));
     Assert.Equal(4, InverseCaptcha.WithLinq("1111"));
     Assert.Equal(0, InverseCaptcha.WithLinq("1234"));
     Assert.Equal(9, InverseCaptcha.WithLinq("91212129"));
 }