예제 #1
0
파일: LoginAT.cs 프로젝트: Nivlipetz1/WSEP
 public void before()
 {
     if (SystemService.testable)
     {
         us = new SystemService();
     }
     else
     {
         us = new SystemStub();
     }
     us.register("abc", "123");
 }
예제 #2
0
 public void successRegister()
 {
     Assert.True(us.register("myTest" + new Random().Next(100), "123"));
     Assert.True(us.register("bcd" + new Random().Next(100), "1!@#sda"));
     Assert.True(us.register("cde" + new Random().Next(100), "dsadasdas"));
     Assert.True(us.register("def" + new Random().Next(100), "AS1 22   4"));
     Assert.True(us.register("efg" + new Random().Next(100), "0"));
 }