[banshee] [tests] Fix tests that set a custom IO provider



commit 5a7c928126bcd92f13ce0399eae62b9437e57b22
Author: Alexander Kojevnikov <alexander kojevnikov com>
Date:   Thu Mar 18 20:14:26 2010 +1100

    [tests] Fix tests that set a custom IO provider

 src/Core/Banshee.Core/Banshee.IO/Provider.cs |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/Core/Banshee.Core/Banshee.IO/Provider.cs b/src/Core/Banshee.Core/Banshee.IO/Provider.cs
index 6e79e00..b24df9e 100644
--- a/src/Core/Banshee.Core/Banshee.IO/Provider.cs
+++ b/src/Core/Banshee.Core/Banshee.IO/Provider.cs
@@ -88,6 +88,8 @@ namespace Banshee.IO
         public static void SetProvider (IProvider customProvider)
         {
             provider = customProvider;
+            directory = (IDirectory)Activator.CreateInstance (provider.DirectoryProvider);
+            file = (IFile)Activator.CreateInstance (provider.FileProvider);
         }
 
         internal static IDirectory Directory {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]