public void NavigationOnDiskService_GetItems_UnauthorizedAccess_Exception()
 {
     //arrange
     INavigationOnDiskService navigationOnDiskService = new NavigationOnDiskService();
     const string path = @"C:\Documents and Settings";
     //act
     var items = navigationOnDiskService.GetItems(path);
     //assert
 }
 public void NavigationOnDiskService_GetItems_EmptyPath_Exception()
 {
     //arrange
     INavigationOnDiskService navigationOnDiskService = new NavigationOnDiskService();
     const string path = @"";
     //act
     var items = navigationOnDiskService.GetItems(path);
     //assert
 }
 public void NavigationOnDiskService_GetItems()
 {
     //arrange
     INavigationOnDiskService navigationOnDiskService = new NavigationOnDiskService();
     const string path = @"C:\";
     //act
     var items = navigationOnDiskService.GetItems(path);
     //assert
     Assert.IsNotNull(items);
 }
 public void NavigationOnDiskService_GetGetFileInfo()
 {
     //arrange
     INavigationOnDiskService navigationOnDiskService = new NavigationOnDiskService();
     const string path = @"C:\Program Files\Microsoft Visual Studio 12.0\Common7\IDE\Microsoft.VisualStudio.Licensing.dll";
     //act
     var file = navigationOnDiskService.GetFileInfo(path);
     //assert
     Assert.IsNotNull(file);
 }
 public void NavigationOnDiskService_GetItems_Check_Return_Count()
 {
     //arrange
     INavigationOnDiskService navigationOnDiskService = new NavigationOnDiskService();
     const string path = @"C:\";
     //act
     var items = navigationOnDiskService.GetItems(path);
     var directories = new DirectoryInfo(path).GetDirectories();
     var files = new DirectoryInfo(path).GetFiles();
     //assert
     Assert.AreEqual(directories.Count() + files.Count(),items.Count);
 }