public void TestDisposeDestroyAttachers() { var attacher = new Mock <IAttacher>(); CommandInfo ci = new CommandInfo(); ci.AttachTo(attacher.Object); ci.Dispose(); attacher.Verify(a => a.Dispose(), Times.Once()); }
public void TestDisposeDestroyAttachers() { var attacher = new Mock<IAttacher>(); CommandInfo ci = new CommandInfo(); ci.AttachTo(attacher.Object); ci.Dispose(); attacher.Verify(a => a.Dispose(), Times.Once()); }