Closed ZeroKnight closed 6 years ago
Actually, no. The current design leaves the two necessarily coupled. Command::Parser
takes a Command
object, so I don't believe there's much problem with the test as-is.
However, we'll see if this sentiment survives any potential refactors/redesigns.
Being the first test for ZeroBot that I wrote, this is a growing pain from my still ongoing adventures into becoming familiar with writing unit tests. Testing
Command::Parser
should not involve creatingCommand
objects, but instead inCommand
s own tests.