[longomatch] Fix mock of GetMultiplayer returning an exception
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Fix mock of GetMultiplayer returning an exception
- Date: Tue, 31 Mar 2015 17:36:21 +0000 (UTC)
commit d461cdb1dc2985a05b87c2c0ee13c7455c460c4d
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Fri Mar 27 11:02:54 2015 +0100
Fix mock of GetMultiplayer returning an exception
Tests/Services/TestPlayerController.cs | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/Tests/Services/TestPlayerController.cs b/Tests/Services/TestPlayerController.cs
index 866cb2e..1f4abe9 100644
--- a/Tests/Services/TestPlayerController.cs
+++ b/Tests/Services/TestPlayerController.cs
@@ -54,7 +54,7 @@ namespace Tests.Services
var mtk = new Mock<IMultimediaToolkit> ();
mtk.Setup (m => m.GetPlayer ()).Returns (playerMock.Object);
- mtk.Setup (m => m.GetMultiPlayer ());
+ mtk.Setup (m => m.GetMultiPlayer ()).Throws (new Exception ());
Config.MultimediaToolkit = mtk.Object;
var ftk = new Mock<IGUIToolkit> ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]