Index: Core/Common/src/Core.Common.Gui/Forms/ProgressDialog/ActivityProgressDialog.cs =================================================================== diff -u -r49c5da81f49a23dd6e66526d264a08bf510e6963 -rb995146e05c59a90ab32d316c3cf62cd5b31159e --- Core/Common/src/Core.Common.Gui/Forms/ProgressDialog/ActivityProgressDialog.cs (.../ActivityProgressDialog.cs) (revision 49c5da81f49a23dd6e66526d264a08bf510e6963) +++ Core/Common/src/Core.Common.Gui/Forms/ProgressDialog/ActivityProgressDialog.cs (.../ActivityProgressDialog.cs) (revision b995146e05c59a90ab32d316c3cf62cd5b31159e) @@ -54,6 +54,8 @@ { InitializeComponent(); + MinimizeBox = true; // Allows for minimizing the dialog parent in case of long-lasting activities + this.activities = activities ?? Enumerable.Empty(); } Index: Core/Common/test/Core.Common.Gui.Test/Core.Common.Gui.Test.csproj =================================================================== diff -u -r2d5e2d09b0cb1a7f48e1b0a067d332347c89d4a8 -rb995146e05c59a90ab32d316c3cf62cd5b31159e --- Core/Common/test/Core.Common.Gui.Test/Core.Common.Gui.Test.csproj (.../Core.Common.Gui.Test.csproj) (revision 2d5e2d09b0cb1a7f48e1b0a067d332347c89d4a8) +++ Core/Common/test/Core.Common.Gui.Test/Core.Common.Gui.Test.csproj (.../Core.Common.Gui.Test.csproj) (revision b995146e05c59a90ab32d316c3cf62cd5b31159e) @@ -100,6 +100,7 @@ + Index: Core/Common/test/Core.Common.Gui.Test/Forms/ProgressDialog/ActivityProgressDialogTest.cs =================================================================== diff -u --- Core/Common/test/Core.Common.Gui.Test/Forms/ProgressDialog/ActivityProgressDialogTest.cs (revision 0) +++ Core/Common/test/Core.Common.Gui.Test/Forms/ProgressDialog/ActivityProgressDialogTest.cs (revision b995146e05c59a90ab32d316c3cf62cd5b31159e) @@ -0,0 +1,63 @@ +// Copyright (C) Stichting Deltares 2016. All rights reserved. +// +// This file is part of Ringtoets. +// +// Ringtoets 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.Collections.Generic; +using System.Linq; +using System.Threading; +using System.Windows.Forms; +using Core.Common.Base.Service; +using Core.Common.Controls.Dialogs; +using Core.Common.Gui.Forms.ProgressDialog; +using NUnit.Framework; +using Rhino.Mocks; + +namespace Core.Common.Gui.Test.Forms.ProgressDialog +{ + [TestFixture] + public class ActivityProgressDialogTest + { + [SetUp] + public void SetUp() + { + SynchronizationContext.SetSynchronizationContext(new SynchronizationContext()); + } + + [Test] + public void Constructor_ExpectedValues() + { + // Setup + var mocks = new MockRepository(); + var window = mocks.Stub(); + + mocks.ReplayAll(); + + // Call + using (var dialog = new ActivityProgressDialog(window, Enumerable.Empty())) + { + // Assert + Assert.IsInstanceOf(dialog); + Assert.IsTrue(dialog.MinimizeBox); + } + + mocks.VerifyAll(); + } + } +}