public void CloseShouldCallCloseTable() { mockmapinfo.Setup(m => m.RunCommand("Close Table DummyTable")) .Verifiable("Close table was not called"); ITable table = new TestTable(); table.Close(); mockmapinfo.Verify(); }