예제 #1
0
 public void WhenICallgetItemFromRepo_AndStaticResouceNotExists_ExpectNull()
 {
     StaticNavigationAdaptor adap = new StaticNavigationAdaptor();
     var x = adap.GetItemById(5);
     Assert.IsNull(x);
 }
예제 #2
0
 public void WhenICallgetItemFromRepo_AndStaticResouceExitsts_ExpectItem2()
 {
     StaticNavigationAdaptor adap = new StaticNavigationAdaptor();
     var x = adap.GetItemById(2);
     Assert.AreEqual(2, x.Id);
 }