Ejemplo n.º 1
0
 public void CanPickUpAItem()
 {
     var weakBlade = new LongSword();
     var it = new List<IItems>();
     it.Add(weakBlade);
                 
     Assert.That(it.Any(x => string.Equals("Longsword", x.Name)));
 }
Ejemplo n.º 2
0
 public void DropAItem()
 {
     var weakBlade = new LongSword();
     var it = new List<IItems>();
     
     it.Remove(weakBlade);
     
     Assert.That(!it.Any(x => string.Equals("Longsword", x.Name)));
 }