Index: Riskeer/Piping/test/Riskeer.Piping.Plugin.Test/PipingPluginTest.cs =================================================================== diff -u -r8ee8544364a73f0e573137a30b3c9bfb192db153 -ra71cdd12d04c8804ee6164023af781ef6d136ac3 --- Riskeer/Piping/test/Riskeer.Piping.Plugin.Test/PipingPluginTest.cs (.../PipingPluginTest.cs) (revision 8ee8544364a73f0e573137a30b3c9bfb192db153) +++ Riskeer/Piping/test/Riskeer.Piping.Plugin.Test/PipingPluginTest.cs (.../PipingPluginTest.cs) (revision a71cdd12d04c8804ee6164023af781ef6d136ac3) @@ -243,8 +243,17 @@ public void GetUpdateInfos_ReturnsSupportedUpdateInfos() { // Setup - using (var plugin = new PipingPlugin()) + var mocks = new MockRepository(); + var mainWindow = mocks.Stub(); + var gui = mocks.Stub(); + gui.Stub(g => g.MainWindow).Return(mainWindow); + mocks.ReplayAll(); + + using (var plugin = new PipingPlugin { + Gui = gui + }) + { // Call UpdateInfo[] updateInfos = plugin.GetUpdateInfos().ToArray(); @@ -254,6 +263,8 @@ Assert.AreEqual(1, updateInfos.Count(updateInfo => updateInfo.DataType == typeof(PipingStochasticSoilModelCollectionContext))); Assert.AreEqual(1, updateInfos.Count(updateInfo => updateInfo.DataType == typeof(PipingFailureMechanismSectionsContext))); } + + mocks.VerifyAll(); } [Test]