I'm new to dart and trying out testing. My first programm is a command line tool that takes user input. How can I simulate that during testing?
My function lets the user choose an item out of a list. I'd like to write tests if the function successfully rejects integers too small or too big entered via "readLineSync".
How to create the input in a test? (using test.dart)