public void Add_Already_Added_Exception() { var filter = new CommandFilter(); filter.Add <MockCommand>(); Assert.That(() => filter.Add <MockCommand>(), Throws.InvalidOperationException); }
public void Contains() { var filter = new CommandFilter(); Assert.That(filter.Contains <MockCommand>(), Is.False); filter.Add <MockCommand>(); Assert.That(filter.Contains <MockCommand>(), Is.True); }
public void Remove() { var filter = new CommandFilter(); Assert.That(filter.Remove <MockCommand>(), Is.False); filter.Add <MockCommand>(); Assert.That(filter.Remove <MockCommand>(), Is.True); }
public void Add() { var filter = new CommandFilter(); filter.Add <MockCommand>(); }