I am trying to come up with a test case for a Queue class that I have not yet implemented. While trying to write the code for testEnqueue method I could not find ways to verify apart from using size() or dequeue().

Is it fine to to use other public methods(for ex: size/dequeue) to verify the test case for a public method(enqueue) of the same class?