2

I don't think you need to test everything around opening the input file, closing it, handling exceptions, etc. For the purpose of this task, I believe you want to test your logic, and trust that FileReader or FileInputStream etc just work. I would have a class that that can read the format of the dictionary (not provided, presumably this is ...


2

Make your code return a Task. Even if you don't await it in the program doesn't mean you can't await it in your test. Also pass in a TimeSpan instead of int for seconds. public async static Task CancelAfter(TimeSpan delay, CancellationToken token, Action action) The Task.Delay takes a TimeSpan as an option. Reading code using the TimeSpan Factories is ...


Only top voted, non community-wiki answers of a minimum length are eligible