Remove() public méthode

public Remove ( Uri iconUrl ) : void
iconUrl System.Uri
Résultat void
Exemple #1
0
 public void TestRemove()
 {
     _cache.Remove(new Uri("http://0install.de/feeds/images/test1.png"));
     _cache.Contains(new Uri("http://0install.de/feeds/images/test1.png")).Should().BeFalse();
     _cache.Contains(new Uri("http://0install.de/feeds/images/test2.png")).Should().BeTrue();
 }
 public void TestRemove()
 {
     _cache.Remove(new Uri("http://0install.de/feeds/images/test1.png"));
     Assert.IsFalse(_cache.Contains(new Uri("http://0install.de/feeds/images/test1.png")));
     Assert.IsTrue(_cache.Contains(new Uri("http://0install.de/feeds/images/test2.png")));
 }