Running The Tests

The TestSuite can be built:

If you are using java version you can test your class immediately (assuming the class is created in TestDb4oUnit package):

java -cp db4o-6.0-db4ounit.jar;your_class_folder db4ounit.UnitTestMain your_class_package.AssertTestCase

The second option is to list the test class in Db4oTestSuiteBuilder argument.  You can use db4ounit.extensions.tests.AllTests class. Just add the following method:

AllTests.cs: TestCascadeOnUpdate
1public virtual void TestCascadeOnUpdate() 2 { 3 IDb4oFixture fixture = new Tests.AllTests.ExcludingInMemoryFixture 4 (this, new Fixtures.IndependentConfigurationSource()); 5 TestSuite suite = new Db4oTestSuiteBuilder(fixture, new System.Type[] { typeof(Tests.CascadeOnUpdate) }).Build(); 6 FrameworkTestCase.RunTestAndExpect(suite, 0); 7 }

Now running the AllTests class will include your custom class too.