Index: Core/Gui/test/Core.Gui.TestUtil/Core.Gui.TestUtil.csproj =================================================================== diff -u -rd7ef3a40ed0e346f59abe13a003222804dbd0d41 -r167f4d831b463d77064da0cdab1d4a6b41054e6e --- Core/Gui/test/Core.Gui.TestUtil/Core.Gui.TestUtil.csproj (.../Core.Gui.TestUtil.csproj) (revision d7ef3a40ed0e346f59abe13a003222804dbd0d41) +++ Core/Gui/test/Core.Gui.TestUtil/Core.Gui.TestUtil.csproj (.../Core.Gui.TestUtil.csproj) (revision 167f4d831b463d77064da0cdab1d4a6b41054e6e) @@ -22,24 +22,13 @@ 3.8.1 + + 3.6.1 + - - True - True - Resources.resx - Component - - - PublicResXFileCodeGenerator - Resources.Designer.cs - - - - - \ No newline at end of file Index: Core/Gui/test/Core.Gui.TestUtil/MainWindowTestHelper.cs =================================================================== diff -u --- Core/Gui/test/Core.Gui.TestUtil/MainWindowTestHelper.cs (revision 0) +++ Core/Gui/test/Core.Gui.TestUtil/MainWindowTestHelper.cs (revision 167f4d831b463d77064da0cdab1d4a6b41054e6e) @@ -0,0 +1,49 @@ +// Copyright (C) Stichting Deltares 2021. All rights reserved. +// +// This file is part of Riskeer. +// +// Riskeer is free software: you can redistribute it and/or modify +// it under the terms of the GNU Lesser General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public License +// along with this program. If not, see . +// +// All names, logos, and references to "Deltares" are registered trademarks of +// Stichting Deltares and remain full property of Stichting Deltares at all times. +// All rights reserved. + +using System; +using System.Drawing; +using Core.Gui.Forms.Main; +using Rhino.Mocks; + +namespace Core.Gui.TestUtil +{ + /// + /// Helper class for dealing with dependencies. + /// + public static class MainWindowTestHelper + { + /// + /// Creates a new stub. + /// + /// The to use. + /// The stub. + public static IMainWindow CreateMainWindowStub(MockRepository mockRepository) + { + var mainWindow = mockRepository.Stub(); + + mainWindow.Stub(mw => mw.ApplicationIcon).Return(SystemIcons.Application); + mainWindow.Stub(mw => mw.Handle).Return(IntPtr.Zero); + + return mainWindow; + } + } +} \ No newline at end of file Fisheye: Tag 167f4d831b463d77064da0cdab1d4a6b41054e6e refers to a dead (removed) revision in file `Core/Gui/test/Core.Gui.TestUtil/Properties/Resources.Designer.cs'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 167f4d831b463d77064da0cdab1d4a6b41054e6e refers to a dead (removed) revision in file `Core/Gui/test/Core.Gui.TestUtil/Properties/Resources.resx'. Fisheye: No comparison available. Pass `N' to diff? Index: Core/Gui/test/Core.Gui.TestUtil/Resources/TestIcon.ico =================================================================== diff -u -rd7ef3a40ed0e346f59abe13a003222804dbd0d41 -r167f4d831b463d77064da0cdab1d4a6b41054e6e Binary files differ