   blackbox testing
  I have a little problem, i am doing an assignment about testing. And i've been looking at blackbox testing. I have read about it and understand that it is the output i am supposed to look at wehen doing the test. But the thing is that i am supposed to write 2 classes, one class and one test-class. But the thing, again, is that i have not seen one (!) example online how to actually do a test like this. Or is black-box testing so individual that there is no general way to do it?This is the instructions i have by the way.* come up with a problem and solve it by using a class and a test-class* the test-class may , for example, have a run() that uses asserts to realise the test*sorry about bad english**also sorry about posting an school assignment, but i have been sitting with this on and off for a long (months!) time, and i really want to know how to actually do the black-box test now*   
  Assignment:- Test the 'dir' command. Make sure it behaves properly with /B and /O switches.This is blackbox test. You do not know how dir works, why it works that way - but you test that it produces correct results.Implementation:- You will be working with output produced by running 'dir [switches] directory > testN.txt'.- For each testN.txt output, you will verify that output matches, character-by-character the expected output.- directory parameter will represent several different directories (empty, deeply nested, nested beyond path limit, directory with tens of thousands of files, ....)- switches need to cover all combinations of /B, and /ON, /OE, /OS, /ODAs such, each test will load the testN.txt file, then make sure it checks out.A trivial way to implement this is to generate reference output, manually verify that it is correct, then on each test run, compare the referenceN.txt with textN.txt. If they are character-identical, the test passes.   ;  So i have done like this now. I am just making it simple now.I made one Class "Computer" and one "ComputerTester", ComputerTester simply uses some functions from Computer that returns some values like RAM and NAME and outputs them to a file. Since blackbox testing is supposed to be done by looking at output/input. Do you think what i have done is (atleast simulates) blackbox testing?   