Hi Ivailo, yes, you should write a different test for every method in the Socket class. if you notice that the Socket API is too low level, you can think of a refactoring too, writing tests helps in this task.
Giuseppe ivailo ilionov <[email protected]> writes: > The bind method of class Socket returns 1 for error or returns the value from > the bind() from the C socket library which may be -1 on error.Should I write > a patch which re-writes the comments for each method for use with doxygen ? > About the test case for class Socket: should i write a different method for > each variety of arguments ? For example:void testGethostbynameAfInet ( );void > testGethostbynameAfInet6();// ??
