public void Open() { var view = new Window(); var src = new MouseOpenBehavior(); src.Attach(view); Assert.That(src.Command, Is.Null); src.Detach(); }
public void Properties() => Create(vm => { var view = new Window { DataContext = vm }; var src = new MouseOpenBehavior(); src.Attach(view); Assert.That(src.Command, Is.Null); src.Detach(); });