Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
public void TestClear() { int b = 0; var repo = new ActionRepository(); repo.AddAction("add", s => b++, s => true); Assert.AreEqual(1, repo.CanExecuteCount); Assert.AreEqual(1, repo.ExecuteCount); repo.Clear(); Assert.AreEqual(0, repo.CanExecuteCount); Assert.AreEqual(0, repo.ExecuteCount); }