public void FileInfoParameter_NotAFile()
 {
     string testPath = Environment.GetFolderPath(Environment.SpecialFolder.Desktop);
     FileInfoParameter testParameter = new FileInfoParameter();
     Assert.IsFalse(testParameter.HasErrors);
     testParameter.Text = testPath;
     FileInfo actualResult = testParameter.FileIndicated;
     Assert.IsNull(actualResult);
     Assert.IsTrue(testParameter.HasErrors);
 }
 public void FileInfoParameter_Valid()
 {
     string testPath = Environment.GetFolderPath(Environment.SpecialFolder.Desktop)
         + @"\TestFile.txt";
     FileInfoParameter testParameter = new FileInfoParameter();
     Assert.IsFalse(testParameter.HasErrors);
     testParameter.Text = testPath;
     FileInfo actualResult = testParameter.FileIndicated;
     Assert.IsNotNull(actualResult);
     Assert.AreEqual(testPath, actualResult.FullName);
 }
 public void FileInfoParameter_Empty()
 {
     string testPath = string.Empty;
     FileInfoParameter testParameter = new FileInfoParameter();
     Assert.IsFalse(testParameter.HasErrors);
     testParameter.Text = testPath;
     Assert.IsTrue(testParameter.HasErrors);
 }
 public void FileInfoParameter_Null()
 {
     string testPath = null;
     FileInfoParameter testParameter = new FileInfoParameter();
     Assert.IsFalse(testParameter.HasErrors);
     testParameter.Text = testPath;
     Assert.IsTrue(testParameter.HasErrors);
 }
 public void FileInfoParameter_FileIndicated()
 {
     FileInfoParameter testParameter = new FileInfoParameter();
     Assert.IsFalse(testParameter.HasErrors);
     FileInfo actualResult = testParameter.FileIndicated;
     Assert.IsNull(actualResult);
     Assert.IsTrue(testParameter.HasErrors);
 }
 public void FileInfoParameter_Text()
 {
     string expectedResult = string.Empty;
     FileInfoParameter testParameter = new FileInfoParameter();
     Assert.AreEqual(expectedResult, testParameter.Text);
 }
 public void FileInfoParameter_Type()
 {
     string expectedResult = typeof(FileInfo).ToString();
     FileInfoParameter testParameter = new FileInfoParameter();
     Assert.AreEqual(expectedResult, testParameter.Type.ToString());
 }