Exemplo n.º 1
0
 public void DeleteAsNameTest1()
 {
     OrderServiceTests.Originalize();
     OrderService.DeleteAsName("lry");
     Assert.IsTrue(OrderService.GetList().Find(a => a.client == "lry") == null);
 }
Exemplo n.º 2
0
 public void SeekByProductTest2()
 {
     OrderServiceTests.Originalize();
     Assert.IsTrue(OrderService.SeekByProduct("华硕FX80GM-飞行堡垒星途版").client == "lry" && OrderService.SeekByProduct("华硕FX80GM-飞行堡垒星途版").product == "华硕FX80GM-飞行堡垒星途版" && OrderService.SeekByProduct("华硕FX80GM-飞行堡垒星途版").price == 13000 && OrderService.SeekByProduct("华硕FX80GM-飞行堡垒星途版").num == 4);
 }
Exemplo n.º 3
0
 public void ChangeTest2()
 {
     OrderServiceTests.Originalize();
     OrderService.Change(OrderService.GetList()[1], OrderService.GetList()[3]);
     Assert.IsTrue(OrderService.GetList()[1].num == 4);
 }
Exemplo n.º 4
0
 public void SeekByNameTest1()
 {
     OrderServiceTests.Originalize();
     Assert.IsTrue(OrderService.SeekByName("lry").client == "lry" && OrderService.SeekByName("lry").product == "华硕FX80GM-飞行堡垒星途版" && OrderService.SeekByName("lry").price == 13000);
 }
Exemplo n.º 5
0
 public void DeleteAsNumTest2()
 {
     OrderServiceTests.Originalize();
     OrderService.DeleteAsNum(0);
     Assert.IsTrue(OrderService.GetList().Find(a => a.num == 1) == null);
 }