ImprovingBootcamp / Squire

A sequence of unit tests meant to test and reinforce the basic understanding of C# and the .NET Framework
http://Improving.com
Other
11 stars 16 forks source link

Create File/System.IO Kihon #3

Open trayburn opened 13 years ago

rstackhouse commented 11 years ago

What should be covered here?

Reading?

Writing?

Avoiding exceptions?

Permissions?

Anything else?

trayburn commented 11 years ago

I'd start with light basics, Read a file, write a file, create a directory, list directories, count all files under a directory.

The big thing for this one is we need to isolate them under a temp directory, and clean up whatever we as them to write to disk when we're done. Repeatability of the test is key.