Testing Mp3File Related Classes
- Define a class TestMp3File and a member function, test().
- The test case should do the following:
1.
Using the classes from playgen, create a PlayList from a directory specified on the command line, visiting each file.
2.
Using PlayListWriter, write the PlayList to a file.
3.
Using PlayListReader, read the file into another PlayList instance.
4.
Write an equals() function for PlayList that tests that each property of the Mp3File in the collection has the same value as the corresponding one in the original.
Категории