Skip to content

Commit

Permalink
[Refactor] test to user Assert.That syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
samatrhea committed Feb 9, 2024
1 parent 03ce507 commit 914b08e
Show file tree
Hide file tree
Showing 112 changed files with 1,240 additions and 1,285 deletions.
13 changes: 5 additions & 8 deletions CDP4Common.Tests/Attributes/CDPVersionTestFixture.cs
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
#region Copyright
// --------------------------------------------------------------------------------------------------------------------
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="CDPVersionTestFixture.cs" company="RHEA System S.A.">
// Copyright (c) 2015-2019 RHEA System S.A.
// Copyright (c) 2015-2024 RHEA System S.A.
//
// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou
//
// This file is part of CDP4-SDK Community Edition
// This file is part of CDP4-COMET-SDK Community Edition
//
// The CDP4-SDK Community Edition is free software; you can redistribute it and/or
// The CDP4-COMET-SDK Community Edition 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.
//
// The CDP4-SDK Community Edition is distributed in the hope that it will be useful,
// The CDP4-COMET-SDK Community Edition 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.
Expand All @@ -22,11 +21,9 @@
// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
// </copyright>
// --------------------------------------------------------------------------------------------------------------------
#endregion

namespace CDP4Common.Tests.Attributes
{
using System;
using NUnit.Framework;

/// <summary>
Expand Down
8 changes: 4 additions & 4 deletions CDP4Common.Tests/Attributes/ContainerAttributeTestFixture.cs
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="ContainerAttributeTestFixture.cs" company="RHEA System S.A.">
// Copyright (c) 2015-2019 RHEA System S.A.
// Copyright (c) 2015-2024 RHEA System S.A.
//
// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou
//
// This file is part of CDP4-SDK Community Edition
// This file is part of CDP4-COMET-SDK Community Edition
//
// The CDP4-SDK Community Edition is free software; you can redistribute it and/or
// The CDP4-COMET-SDK Community Edition 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.
//
// The CDP4-SDK Community Edition is distributed in the hope that it will be useful,
// The CDP4-COMET-SDK Community Edition 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.
Expand Down
23 changes: 10 additions & 13 deletions CDP4Common.Tests/Attributes/UmlInformationAttributeTestFixture.cs
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
#region Copyright
// --------------------------------------------------------------------------------------------------------------------
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="UmlInformationAttributeTestFixture.cs" company="RHEA System S.A.">
// Copyright (c) 2015-2019 RHEA System S.A.
// Copyright (c) 2015-2024 RHEA System S.A.
//
// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou
//
// This file is part of CDP4-SDK Community Edition
// This file is part of CDP4-COMET-SDK Community Edition
//
// The CDP4-SDK Community Edition is free software; you can redistribute it and/or
// The CDP4-COMET-SDK Community Edition 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.
//
// The CDP4-SDK Community Edition is distributed in the hope that it will be useful,
// The CDP4-COMET-SDK Community Edition 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.
Expand All @@ -22,11 +21,9 @@
// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
// </copyright>
// --------------------------------------------------------------------------------------------------------------------
#endregion

namespace CDP4Common.Tests.Attributes
{
using System;
using NUnit.Framework;

/// <summary>
Expand All @@ -46,11 +43,11 @@ public void Verify_That_Properties_Are_Set()

var umlInformationAttribute = new UmlInformationAttribute(aggregationKind, isDerived, isOrdered, isNullable, isPersistent);

Assert.AreEqual(aggregationKind, umlInformationAttribute.Aggregation);
Assert.AreEqual(isDerived, umlInformationAttribute.IsDerived);
Assert.AreEqual(isOrdered, umlInformationAttribute.IsOrdered);
Assert.AreEqual(isNullable, umlInformationAttribute.IsNullable);
Assert.AreEqual(isPersistent, umlInformationAttribute.IsPersistent);
Assert.That(umlInformationAttribute.Aggregation, Is.EqualTo(aggregationKind));
Assert.That(umlInformationAttribute.IsDerived, Is.EqualTo(isDerived));
Assert.That(umlInformationAttribute.IsOrdered, Is.EqualTo(isOrdered));
Assert.That(umlInformationAttribute.IsNullable, Is.EqualTo(isNullable));
Assert.That(umlInformationAttribute.IsPersistent, Is.EqualTo(isPersistent));
}
}
}
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="DefaultPermissionProviderTestFixture.cs" company="RHEA System S.A.">
// Copyright (c) 2015-2019 RHEA System S.A.
// Copyright (c) 2015-2024 RHEA System S.A.
//
// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou
//
// This file is part of CDP4-SDK Community Edition
// This file is part of CDP4-COMET-SDK Community Edition
//
// The CDP4-SDK Community Edition is free software; you can redistribute it and/or
// The CDP4-COMET-SDK Community Edition 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.
//
// The CDP4-SDK Community Edition is distributed in the hope that it will be useful,
// The CDP4-COMET-SDK Community Edition 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.
Expand Down
14 changes: 7 additions & 7 deletions CDP4Common.Tests/ClasslessDtoTestFixture.cs
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
#region Copyright
// --------------------------------------------------------------------------------------------------------------------
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="ClasslessDtoTestFixture.cs" company="RHEA System S.A.">
// Copyright (c) 2015-2019 RHEA System S.A.
// Copyright (c) 2015-2024 RHEA System S.A.
//
// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou
//
// This file is part of CDP4-SDK Community Edition
// This file is part of CDP4-COMET-SDK Community Edition
//
// The CDP4-SDK Community Edition is free software; you can redistribute it and/or
// The CDP4-COMET-SDK Community Edition 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.
//
// The CDP4-SDK Community Edition is distributed in the hope that it will be useful,
// The CDP4-COMET-SDK Community Edition 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.
Expand All @@ -22,14 +21,15 @@
// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
// </copyright>
// --------------------------------------------------------------------------------------------------------------------
#endregion

namespace CDP4Common.Tests
{
using System;
using System.Collections.Generic;

using CDP4Common.DTO;
using CDP4Common.MetaInfo;

using NUnit.Framework;

[TestFixture]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="ActualFiniteStateComparerTestFixture.cs" company="RHEA System S.A.">
// Copyright (c) 2015-2019 RHEA System S.A.
// Copyright (c) 2015-2024 RHEA System S.A.
//
// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou
//
// This file is part of CDP4-SDK Community Edition
// This file is part of CDP4-COMET-SDK Community Edition
//
// The CDP4-SDK Community Edition is free software; you can redistribute it and/or
// The CDP4-COMET-SDK Community Edition 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.
//
// The CDP4-SDK Community Edition is distributed in the hope that it will be useful,
// The CDP4-COMET-SDK Community Edition 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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
//
// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Yevhen Ikonnykov
//
// This file is part of CDP4-SDK Community Edition
// This file is part of CDP4-COMET-SDK Community Edition
//
// The CDP4-SDK Community Edition is free software; you can redistribute it and/or
// The CDP4-COMET-SDK Community Edition 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.
//
// The CDP4-SDK Community Edition is distributed in the hope that it will be useful,
// The CDP4-COMET-SDK Community Edition 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.
Expand Down
8 changes: 4 additions & 4 deletions CDP4Common.Tests/Comparers/DefinedThingComparerTestFixture.cs
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="DefinedThingComparerTestFixture.cs" company="RHEA System S.A.">
// Copyright (c) 2015-2019 RHEA System S.A.
// Copyright (c) 2015-2024 RHEA System S.A.
//
// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou
//
// This file is part of CDP4-SDK Community Edition
// This file is part of CDP4-COMET-SDK Community Edition
//
// The CDP4-SDK Community Edition is free software; you can redistribute it and/or
// The CDP4-COMET-SDK Community Edition 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.
//
// The CDP4-SDK Community Edition is distributed in the hope that it will be useful,
// The CDP4-COMET-SDK Community Edition 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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="ElementDefinitionComparerTestFixture.cs" company="RHEA System S.A.">
// Copyright (c) 2015-2019 RHEA System S.A.
// Copyright (c) 2015-2024 RHEA System S.A.
//
// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou
//
// This file is part of CDP4-SDK Community Edition
// This file is part of CDP4-COMET-SDK Community Edition
//
// The CDP4-SDK Community Edition is free software; you can redistribute it and/or
// The CDP4-COMET-SDK Community Edition 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.
//
// The CDP4-SDK Community Edition is distributed in the hope that it will be useful,
// The CDP4-COMET-SDK Community Edition 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.
Expand Down
8 changes: 4 additions & 4 deletions CDP4Common.Tests/Comparers/ElementUsageComparerTestFixture.cs
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="ElementUsageComparerTestFixture.cs" company="RHEA System S.A.">
// Copyright (c) 2015-2019 RHEA System S.A.
// Copyright (c) 2015-2024 RHEA System S.A.
//
// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou
//
// This file is part of CDP4-SDK Community Edition
// This file is part of CDP4-COMET-SDK Community Edition
//
// The CDP4-SDK Community Edition is free software; you can redistribute it and/or
// The CDP4-COMET-SDK Community Edition 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.
//
// The CDP4-SDK Community Edition is distributed in the hope that it will be useful,
// The CDP4-COMET-SDK Community Edition 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.
Expand Down
8 changes: 4 additions & 4 deletions CDP4Common.Tests/Comparers/GuidComparerTestFixture.cs
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="GuidComparer.cs" company="RHEA System S.A.">
// Copyright (c) 2015-2019 RHEA System S.A.
// Copyright (c) 2015-2024 RHEA System S.A.
//
// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou
//
// This file is part of CDP4-SDK Community Edition
// This file is part of CDP4-COMET-SDK Community Edition
//
// The CDP4-SDK Community Edition is free software; you can redistribute it and/or
// The CDP4-COMET-SDK Community Edition 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.
//
// The CDP4-SDK Community Edition is distributed in the hope that it will be useful,
// The CDP4-COMET-SDK Community Edition 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.
Expand Down
8 changes: 4 additions & 4 deletions CDP4Common.Tests/Comparers/OptionComparerTestFixture.cs
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@

// --------------------------------------------------------------------------------------------------------------------
// <copyright file="OptionComparerTestFixture.cs" company="RHEA System S.A.">
// Copyright (c) 2015-2019 RHEA System S.A.
// Copyright (c) 2015-2024 RHEA System S.A.
//
// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou
//
// This file is part of CDP4-SDK Community Edition
// This file is part of CDP4-COMET-SDK Community Edition
//
// The CDP4-SDK Community Edition is free software; you can redistribute it and/or
// The CDP4-COMET-SDK Community Edition 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.
//
// The CDP4-SDK Community Edition is distributed in the hope that it will be useful,
// The CDP4-COMET-SDK Community Edition 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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="ParameterBaseComparerTestFixture.cs" company="RHEA System S.A.">
// Copyright (c) 2015-2019 RHEA System S.A.
// Copyright (c) 2015-2024 RHEA System S.A.
//
// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou
//
// This file is part of CDP4-SDK Community Edition
// This file is part of CDP4-COMET-SDK Community Edition
//
// The CDP4-SDK Community Edition is free software; you can redistribute it and/or
// The CDP4-COMET-SDK Community Edition 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.
//
// The CDP4-SDK Community Edition is distributed in the hope that it will be useful,
// The CDP4-COMET-SDK Community Edition 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.
Expand Down
Loading

0 comments on commit 914b08e

Please sign in to comment.