2014-04-02 13:21 GMT+02:00 Roelof Wobben <r.wobben@home.nl>:
Hello,
On the first part I have to make a class named BlankCell which is a subclass of TestCase. So far no problem.
No, firstly, all cells are just subclasses of Object ( http://squeak.preeminent.org/tut2007/html/015.html). And in step http://squeak.preeminent.org/tut2007/html/015A.html class BlankCellTestCase is a subclass of TestCase
But when you are on the MirrorCell part BlankCell must be a subclass of Cell. But then the tests will fail because should: cannot be found.
In step http://squeak.preeminent.org/tut2007/html/025.html, you create a new abstract class Cell and moves the BlankCell under the new abstract class.
The manual says nothing about that the new class Cell must be a part of TestCase.
No, the TestCases are just "using" your Cell classes. In http://squeak.preeminent.org/tut2007/html/026.html you are moving the MirrorCell under Cell as well. And only testcase BlankCellTestCase is a subclass of TestCase. And then you are createinga new subclass of TestCase -> MirrorCellTestCase
How to solve this ?
Roelof