Skip to content

Commit

Permalink
Unit test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tznind committed Jul 17, 2019
1 parent a8632e6 commit 9645d55
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Rdmp.Core.Tests/Curation/Integration/PipelineTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public void CloneAPipeline(bool revertAfterClone)
Assert.AreNotEqual(p2, p);
Assert.AreNotEqual(p2.ID,p.ID);

Assert.AreEqual(p2.Name, p.Name + "(Clone)");
Assert.AreEqual(p2.Name, p.Name + " (Clone)");

Assert.AreEqual(componentsBefore *2, RepositoryLocator.CatalogueRepository.GetAllObjects<PipelineComponent>().Count());
Assert.AreEqual(argumentsBefore *2, RepositoryLocator.CatalogueRepository.GetAllObjects<PipelineComponentArgument>().Count());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public class PlatformDatabaseCreationOptions
[Option('e', "ExampleDatasets", Default = false, HelpText = "Create example datasets, projects, extraction configurations and cohort queries")]
public bool ExampleDatasets{get;set;}

[Option('s', "Seed", Default = false, HelpText = "When ExampleDatasets is set this is the seed that is used for generating the data")]
[Option('s', "Seed", Default = 500, HelpText = "When ExampleDatasets is set this is the seed that is used for generating the data")]
public int Seed { get; set; } = 500;

[Usage]
Expand Down
8 changes: 7 additions & 1 deletion Rdmp.UI.Tests/WideMessageBoxTests.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
using NUnit.Framework;
// Copyright (c) The University of Dundee 2018-2019
// This file is part of the Research Data Management Platform (RDMP).
// RDMP is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
// RDMP 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 General Public License for more details.
// You should have received a copy of the GNU General Public License along with RDMP. If not, see <https://www.gnu.org/licenses/>.

using NUnit.Framework;
using ReusableUIComponents;
using ReusableUIComponents.Dialogs;
using System;
Expand Down
2 changes: 1 addition & 1 deletion Rdmp.UI/MainFormUITabs/DitaExtractorUI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace Rdmp.UI.MainFormUITabs
/// <summary>
/// RDMP supports extracting all your metadata into DITA format (http://dita.xml.org/ - DITA OASIS Standard). This is an XML standard with good tool support. This form lets you
/// export your entire metadata descriptive database into a collection of DITA files. This might be useful to you for some reason (e.g. to produce offline PDFs etc) but really
/// the recommended route is to use the built in metadata reports (e.g. ConfigureMetadataReport). Alternatively you can run queries directly on the RDMP Data Catalogue database
/// the recommended route is to use the built in metadata reports (e.g. MetadataReportUI). Alternatively you can run queries directly on the RDMP Data Catalogue database
/// which is a super relational database with many tables (Catalogue, CatalogueItem, SupportingDocument etc etc).
///
/// <para>NOTE: Make sure that you have set a Resource Acronym for each of your datasets (Catalogues) before attempting to extract in DITA format.</para>
Expand Down
8 changes: 7 additions & 1 deletion Reusable/Tests/ReusableCodeTests/ChangeLogIsCorrectTests.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
using NUnit.Framework;
// Copyright (c) The University of Dundee 2018-2019
// This file is part of the Research Data Management Platform (RDMP).
// RDMP is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
// RDMP 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 General Public License for more details.
// You should have received a copy of the GNU General Public License along with RDMP. If not, see <https://www.gnu.org/licenses/>.

using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.IO;
Expand Down

0 comments on commit 9645d55

Please sign in to comment.