|
From: John M. H. <ma...@ni...> - 2006-05-26 11:51:18
|
rationale: http://www.placebosoft.com/abstract-test.html Basically, while the compiler tests that interfaces are correct syntactically, having a set of tests to run on an interface means that you can verify that each interface method is actually doing what it should be in a coherent, meaningful way. Without an interface test, I can be sure that HamSandwich implements IFood, but I can't be sure the IFood method eat() doesn't turn the HamSandwich into a tree, when for all other IFoods eat() causes the IFood to dissappear. -john mark hawley Why are you testing interfaces? Perhaps you can identify some kind of value that I can't see? Peter |