[banshee] MediaEngineTests: add new overload for WaitFor()



commit 361ae1f5319387ebdd2f26732123ef3e56caf516
Author: Andrés G. Aragoneses <knocte gmail com>
Date:   Fri Jan 31 00:16:46 2014 +0100

    MediaEngineTests: add new overload for WaitFor()
    
    This overload being missing meant that you could think it was
    *not* missing, and send some System.Action object as the first
    element of the `params object [] states` parameter.

 .../Banshee.Services/Banshee.MediaEngine/Tests.cs  |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/Core/Banshee.Services/Banshee.MediaEngine/Tests.cs 
b/src/Core/Banshee.Services/Banshee.MediaEngine/Tests.cs
index 60ab3e4..1bf4a28 100644
--- a/src/Core/Banshee.Services/Banshee.MediaEngine/Tests.cs
+++ b/src/Core/Banshee.Services/Banshee.MediaEngine/Tests.cs
@@ -182,9 +182,14 @@ namespace Banshee.MediaEngine
             WaitFor (default_ignore, states);
         }
 
+        private void WaitFor (System.Func<PlayerState?, PlayerEvent?, bool> ignore, System.Action action, 
params object [] states)
+        {
+            AssertTransition (ignore, action, states);
+        }
+
         private void WaitFor (System.Func<PlayerState?, PlayerEvent?, bool> ignore, params object [] states)
         {
-            AssertTransition (ignore, null, states);
+            WaitFor (ignore, null, states);
         }
 
         private void AssertTransition (System.Action action, params object [] states)


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