title: Unit Testing Conditions for Directory.GetFiles
body: <p>I've never used Unit tests before, but I am wanting to do so moving forward. Right now I have the simplest method I'm wanting to test: </p>
  
  <pre><code>public void GetAvailableFiles(string rootFolder)
  {
     string[] dirs = Directory.GetFiles(rootFolder);
  }
  </code></pre>
  
  <p>My unit test for this is as follows:</p>
  
  <pre><code>[Test]
  public void CheckDirectory()
  {     
     AvailableFile fileUpload = new AvailableFile();
     fileUpload.GetAvailableFiles("C:\\Input");      
  }
  </code></pre>
  
  <p>When I debug this, I return all the files in my target location. However, I am struggling to come up with a valid condition in which this test can verify that it has passed. </p>
  
  <p>My thinking was to have an expected count of files for this test. I have 10 files in there, so I should expect 10 results back. However, I am unsure how I could go about writing this with what I have. </p>
  
  <p>How should I go about this? </p>