Hi Scott,
don't know if it is really a bug or if I'm doing something wrong.
But with this code:
MockManager.Init(true);
MockManager.CollectAllCalls = true;
IValidationDatabaseService ValidationDatabaseService = this.CreateDatabaseService();
IInclude SimpleInclude = ValidationDatabaseService.Includes["SimpleInclude"];
Assert.IsTrue(SimpleInclude.CanEdit);
Assert.AreEqual( 1, MockManager.CalledPropertyGetCounter("Xxx.Validator.Database.ValidationDatabasePlugin", "CanEdit" ) );
I get the following output:
TestCase 'Xxx.Validator.Database.IncludeTest.CanEdit_Plugin' failed: TypeMock.TypeMockException:
*** Calls not collected for Xxx.Validator.Database.ValidationDatabasePlugin, mock the type or set CollectAllCalls
at TypeMock.MockManager.CalledCounter(String type, String methodName)
at TypeMock.MockManager.CalledPropertyGetCounter(String type, String propertyName)
e:scmwscoladacarddesigner_main estssembliesalidationdatabaseplugin
unittestorgaalidatordatabaseincludetest.cs(325,0): at Xxx.Validator.Database.IncludeTest.CanEdit_Plugin()
Why and where is my code incorrect?