示例#1
0
文件: ATMTests.cs 项目: tams89/TT.ATM
 public void VerifiesPinOnCardEntry_ShouldPass()
 {
     var service = new AuthenticationService();
     Assert.DoesNotThrow(() => service.VerifyPin("0123", 123456, 12345678));
 }
示例#2
0
文件: ATMTests.cs 项目: tams89/TT.ATM
 public void VerifiesPinOnCardEntry_ShouldFail()
 {
     var service = new AuthenticationService();
     Assert.Throws<AuthenticationException>(() => service.VerifyPin("werfvwef", 123456, 12345678));
 }