Index: DamTools/LayerOnSlopeTool/trunk/src/Deltares.LayerOnSlopeTool.StiFileCreator.Tests/DGSMStabDAMInterfaceTests.cs =================================================================== diff -u --- DamTools/LayerOnSlopeTool/trunk/src/Deltares.LayerOnSlopeTool.StiFileCreator.Tests/DGSMStabDAMInterfaceTests.cs (revision 0) +++ DamTools/LayerOnSlopeTool/trunk/src/Deltares.LayerOnSlopeTool.StiFileCreator.Tests/DGSMStabDAMInterfaceTests.cs (revision 3101) @@ -0,0 +1,37 @@ +// Copyright (C) Stichting Deltares 2020. All rights reserved. +// +// This file is part of the Dam Engine. +// +// The Dam Engine is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero 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 Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero 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.Runtime.Remoting; +using NUnit.Framework; + +namespace Deltares.LayerOnSlopeTool.StiFileCreator.Tests +{ + [TestFixture] + public class DGSMStabDAMInterfaceTests + { + [Test] + public void CanGetVersionInfo() + { + var mStabDAMInterface = new DGSMStabDAMInterface(); + Assert.AreEqual("19.1.0", mStabDAMInterface.GetDllVersion().ToString()); + } + } +} \ No newline at end of file Index: DamTools/LayerOnSlopeTool/trunk/src/Deltares.LayerOnSlopeTool.StiFileCreator/DGSMStabDAMInterface.cs =================================================================== diff -u -r3100 -r3101 --- DamTools/LayerOnSlopeTool/trunk/src/Deltares.LayerOnSlopeTool.StiFileCreator/DGSMStabDAMInterface.cs (.../DGSMStabDAMInterface.cs) (revision 3100) +++ DamTools/LayerOnSlopeTool/trunk/src/Deltares.LayerOnSlopeTool.StiFileCreator/DGSMStabDAMInterface.cs (.../DGSMStabDAMInterface.cs) (revision 3101) @@ -54,7 +54,7 @@ { DllVersionInfoStructure dllInfo; DllGetVersion(out dllInfo); - return dllInfo.DwBuildNumber.ToString(); + return string.Format("{0}.{1}.{2}", dllInfo.DwMajorVersion, dllInfo.DwMinorVersion, dllInfo.DwBuildNumber); } /// Index: DamTools/LayerOnSlopeTool/trunk/src/Deltares.LayerOnSlopeTool.StiFileCreator.Tests/Deltares.LayerOnSlopeTool.StiFileCreator.Tests.csproj =================================================================== diff -u -r3099 -r3101 --- DamTools/LayerOnSlopeTool/trunk/src/Deltares.LayerOnSlopeTool.StiFileCreator.Tests/Deltares.LayerOnSlopeTool.StiFileCreator.Tests.csproj (.../Deltares.LayerOnSlopeTool.StiFileCreator.Tests.csproj) (revision 3099) +++ DamTools/LayerOnSlopeTool/trunk/src/Deltares.LayerOnSlopeTool.StiFileCreator.Tests/Deltares.LayerOnSlopeTool.StiFileCreator.Tests.csproj (.../Deltares.LayerOnSlopeTool.StiFileCreator.Tests.csproj) (revision 3101) @@ -28,6 +28,7 @@ +