What is the correct usage of ExpectUnmockedCall in the code below? I thought that either call to Mock.Verify would fail or MockManager.Verify would fail. But the test completes succesfully if I remove the call to Assert mockTable.GetCallCount() equal to 1.
[Test]
public void TestDataTableSelect2() {
MockManager.Init();
Mock<DataTable> mockTable = MockManager.MockAll<DataTable>(Constructor.NotMocked);
mockTable.ExpectUnmockedCall("Select", 1, null); //Expect that DataTable.Select is only called once.
DataTable tbl = new DataTable();
tbl.Columns.Add("dummy1");
tbl.Columns.Add("dummy2");
tbl.Select(string.Empty, "dummy2");
tbl.Select(string.Empty, "dummy1");
mockTable.Verify();
Assert.AreEqual(1, mockTable.GetCallCount("Select"));
MockManager.Verify();
}