From fe6996c1751bdb69efc6426871fd8c9087f00319 Mon Sep 17 00:00:00 2001 From: samatstarion Date: Wed, 18 Feb 2026 17:59:17 +0100 Subject: [PATCH 1/2] [Add] coverage for extend extension methods --- .../AcceptActionUsageExtensionsTestFixture.cs | 50 ++++ .../ActionDefinitionExtensionsTestFixture.cs | 38 +++ .../ActionUsageExtensionsTestFixture.cs | 38 +++ .../ActorMembershipExtensionsTestFixture.cs | 38 +++ ...locationDefinitionExtensionsTestFixture.cs | 38 +++ .../AllocationUsageExtensionsTestFixture.cs | 38 +++ ...ysisCaseDefinitionExtensionsTestFixture.cs | 38 +++ .../AnalysisCaseUsageExtensionsTestFixture.cs | 44 ++++ .../AnnotatingElementExtensionsTestFixture.cs | 56 ++++ .../Extend/AnnotationExtensionsTestFixture.cs | 56 ++++ ...ertConstraintUsageExtensionsTestFixture.cs | 38 +++ ...ignmentActionUsageExtensionsTestFixture.cs | 50 ++++ .../AssociationExtensionsTestFixture.cs | 56 ++++ .../AttributeUsageExtensionsTestFixture.cs | 44 ++++ .../Extend/BehaviorExtensionsTestFixture.cs | 44 ++++ .../BooleanExpressionExtensionsTestFixture.cs | 38 +++ ...culationDefinitionExtensionsTestFixture.cs | 38 +++ .../CalculationUsageExtensionsTestFixture.cs | 38 +++ .../CaseDefinitionExtensionsTestFixture.cs | 50 ++++ .../Extend/CaseUsageExtensionsTestFixture.cs | 56 ++++ .../Extend/ClassifierExtensionsTestFixture.cs | 38 +++ .../ConcernUsageExtensionsTestFixture.cs | 38 +++ ...atedPortDefinitionExtensionsTestFixture.cs | 44 ++++ ...njugatedPortTypingExtensionsTestFixture.cs | 38 +++ .../ConjugationExtensionsTestFixture.cs | 38 +++ ...nnectionDefinitionExtensionsTestFixture.cs | 38 +++ .../ConnectionUsageExtensionsTestFixture.cs | 38 +++ .../Extend/ConnectorExtensionsTestFixture.cs | 68 +++++ .../ConstraintUsageExtensionsTestFixture.cs | 38 +++ .../CrossSubsettingExtensionsTestFixture.cs | 38 +++ .../Extend/DefinitionExtensionsTestFixture.cs | 219 +++++++++++++++ .../DifferencingExtensionsTestFixture.cs | 38 +++ .../Extend/DisjoiningExtensionsTestFixture.cs | 38 +++ .../DocumentationExtensionsTestFixture.cs | 38 +++ .../Extend/ElementExtensionsTestFixture.cs | 98 +++++++ ...ntFilterMembershipExtensionsTestFixture.cs | 38 +++ ...dFeatureMembershipExtensionsTestFixture.cs | 38 +++ ...merationDefinitionExtensionsTestFixture.cs | 38 +++ .../EnumerationUsageExtensionsTestFixture.cs | 38 +++ ...entOccurrenceUsageExtensionsTestFixture.cs | 44 ++++ .../ExhibitStateUsageExtensionsTestFixture.cs | 38 +++ .../Extend/ExpressionExtensionsTestFixture.cs | 50 ++++ ...ureChainExpressionExtensionsTestFixture.cs | 38 +++ .../FeatureChainingExtensionsTestFixture.cs | 38 +++ .../Extend/FeatureExtensionsTestFixture.cs | 128 +++++++++ .../FeatureInvertingExtensionsTestFixture.cs | 38 +++ .../FeatureMembershipExtensionsTestFixture.cs | 44 ++++ ...eferenceExpressionExtensionsTestFixture.cs | 38 +++ .../FeatureTypingExtensionsTestFixture.cs | 38 +++ .../FeatureValueExtensionsTestFixture.cs | 44 ++++ .../FlowDefinitionExtensionsTestFixture.cs | 38 +++ .../Extend/FlowExtensionsTestFixture.cs | 68 +++++ .../Extend/FlowUsageExtensionsTestFixture.cs | 38 +++ ...ForLoopActionUsageExtensionsTestFixture.cs | 44 ++++ ...dConcernMembershipExtensionsTestFixture.cs | 43 +++ .../Extend/FunctionExtensionsTestFixture.cs | 50 ++++ .../IfActionUsageExtensionsTestFixture.cs | 50 ++++ .../Extend/ImportExtensionsTestFixture.cs | 44 ++++ ...ncludeUseCaseUsageExtensionsTestFixture.cs | 38 +++ ...ntiationExpressionExtensionsTestFixture.cs | 44 ++++ ...nterfaceDefinitionExtensionsTestFixture.cs | 38 +++ .../InterfaceUsageExtensionsTestFixture.cs | 38 +++ .../IntersectingExtensionsTestFixture.cs | 38 +++ .../Extend/ItemUsageExtensionsTestFixture.cs | 38 +++ .../LoopActionUsageExtensionsTestFixture.cs | 38 +++ .../Extend/MembershipExtensionsTestFixture.cs | 44 ++++ ...taAccessExpressionExtensionsTestFixture.cs | 38 +++ .../MetadataFeatureExtensionsTestFixture.cs | 38 +++ .../MetadataUsageExtensionsTestFixture.cs | 38 +++ .../MultiplicityRangeExtensionsTestFixture.cs | 50 ++++ ...bjectiveMembershipExtensionsTestFixture.cs | 38 +++ .../OccurrenceUsageExtensionsTestFixture.cs | 44 ++++ .../OwningMembershipExtensionsTestFixture.cs | 56 ++++ .../Extend/PackageExtensionsTestFixture.cs | 38 +++ ...arameterMembershipExtensionsTestFixture.cs | 38 +++ .../Extend/PartUsageExtensionsTestFixture.cs | 38 +++ ...PerformActionUsageExtensionsTestFixture.cs | 38 +++ .../PortConjugationExtensionsTestFixture.cs | 38 +++ .../PortDefinitionExtensionsTestFixture.cs | 38 +++ .../Extend/PortUsageExtensionsTestFixture.cs | 38 +++ ...eferenceSubsettingExtensionsTestFixture.cs | 38 +++ .../ReferenceUsageExtensionsTestFixture.cs | 38 +++ .../RelationshipExtensionsTestFixture.cs | 38 +++ ...enderingDefinitionExtensionsTestFixture.cs | 38 +++ .../RenderingUsageExtensionsTestFixture.cs | 38 +++ ...nstraintMembershipExtensionsTestFixture.cs | 44 ++++ ...uirementDefinitionExtensionsTestFixture.cs | 73 +++++ .../RequirementUsageExtensionsTestFixture.cs | 80 ++++++ ...ficationMembershipExtensionsTestFixture.cs | 44 ++++ ...pressionMembershipExtensionsTestFixture.cs | 38 +++ ...fyRequirementUsageExtensionsTestFixture.cs | 43 +++ .../SendActionUsageExtensionsTestFixture.cs | 50 ++++ .../SpecializationExtensionsTestFixture.cs | 38 +++ ...keholderMembershipExtensionsTestFixture.cs | 38 +++ .../StateDefinitionExtensionsTestFixture.cs | 56 ++++ ...ubactionMembershipExtensionsTestFixture.cs | 38 +++ .../Extend/StateUsageExtensionsTestFixture.cs | 56 ++++ .../Extend/StepExtensionsTestFixture.cs | 44 ++++ .../SubclassificationExtensionsTestFixture.cs | 38 +++ .../SubjectMembershipExtensionsTestFixture.cs | 38 +++ .../Extend/SubsettingExtensionsTestFixture.cs | 38 +++ ...rminateActionUsageExtensionsTestFixture.cs | 38 +++ ...tualRepresentationExtensionsTestFixture.cs | 38 +++ ...nFeatureMembershipExtensionsTestFixture.cs | 38 +++ .../TransitionUsageExtensionsTestFixture.cs | 68 +++++ .../Extend/TypeExtensionsTestFixture.cs | 164 ++++++++++++ .../TypeFeaturingExtensionsTestFixture.cs | 38 +++ .../Extend/UnioningExtensionsTestFixture.cs | 38 +++ .../Extend/UsageExtensionsTestFixture.cs | 249 ++++++++++++++++++ .../UseCaseDefinitionExtensionsTestFixture.cs | 38 +++ .../UseCaseUsageExtensionsTestFixture.cs | 43 +++ .../VariantMembershipExtensionsTestFixture.cs | 38 +++ ...tionCaseDefinitionExtensionsTestFixture.cs | 38 +++ ...ificationCaseUsageExtensionsTestFixture.cs | 43 +++ .../ViewDefinitionExtensionsTestFixture.cs | 56 ++++ ...enderingMembershipExtensionsTestFixture.cs | 44 ++++ .../Extend/ViewUsageExtensionsTestFixture.cs | 58 ++++ ...iewpointDefinitionExtensionsTestFixture.cs | 38 +++ .../ViewpointUsageExtensionsTestFixture.cs | 44 ++++ ...ileLoopActionUsageExtensionsTestFixture.cs | 44 ++++ SysML2.NET/SysML2.NET.csproj | 4 + 121 files changed, 5787 insertions(+) create mode 100644 SysML2.NET.Tests/Extend/AcceptActionUsageExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/ActionDefinitionExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/ActionUsageExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/ActorMembershipExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/AllocationDefinitionExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/AllocationUsageExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/AnalysisCaseDefinitionExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/AnalysisCaseUsageExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/AnnotatingElementExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/AnnotationExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/AssertConstraintUsageExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/AssignmentActionUsageExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/AssociationExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/AttributeUsageExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/BehaviorExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/BooleanExpressionExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/CalculationDefinitionExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/CalculationUsageExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/CaseDefinitionExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/CaseUsageExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/ClassifierExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/ConcernUsageExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/ConjugatedPortDefinitionExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/ConjugatedPortTypingExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/ConjugationExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/ConnectionDefinitionExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/ConnectionUsageExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/ConnectorExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/ConstraintUsageExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/CrossSubsettingExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/DefinitionExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/DifferencingExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/DisjoiningExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/DocumentationExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/ElementExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/ElementFilterMembershipExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/EndFeatureMembershipExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/EnumerationDefinitionExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/EnumerationUsageExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/EventOccurrenceUsageExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/ExhibitStateUsageExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/ExpressionExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/FeatureChainExpressionExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/FeatureChainingExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/FeatureExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/FeatureInvertingExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/FeatureMembershipExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/FeatureReferenceExpressionExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/FeatureTypingExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/FeatureValueExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/FlowDefinitionExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/FlowExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/FlowUsageExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/ForLoopActionUsageExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/FramedConcernMembershipExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/FunctionExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/IfActionUsageExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/ImportExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/IncludeUseCaseUsageExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/InstantiationExpressionExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/InterfaceDefinitionExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/InterfaceUsageExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/IntersectingExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/ItemUsageExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/LoopActionUsageExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/MembershipExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/MetadataAccessExpressionExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/MetadataFeatureExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/MetadataUsageExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/MultiplicityRangeExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/ObjectiveMembershipExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/OccurrenceUsageExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/OwningMembershipExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/PackageExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/ParameterMembershipExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/PartUsageExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/PerformActionUsageExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/PortConjugationExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/PortDefinitionExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/PortUsageExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/ReferenceSubsettingExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/ReferenceUsageExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/RelationshipExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/RenderingDefinitionExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/RenderingUsageExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/RequirementConstraintMembershipExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/RequirementDefinitionExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/RequirementUsageExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/RequirementVerificationMembershipExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/ResultExpressionMembershipExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/SatisfyRequirementUsageExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/SendActionUsageExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/SpecializationExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/StakeholderMembershipExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/StateDefinitionExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/StateSubactionMembershipExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/StateUsageExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/StepExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/SubclassificationExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/SubjectMembershipExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/SubsettingExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/TerminateActionUsageExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/TextualRepresentationExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/TransitionFeatureMembershipExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/TransitionUsageExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/TypeExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/TypeFeaturingExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/UnioningExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/UsageExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/UseCaseDefinitionExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/UseCaseUsageExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/VariantMembershipExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/VerificationCaseDefinitionExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/VerificationCaseUsageExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/ViewDefinitionExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/ViewRenderingMembershipExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/ViewUsageExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/ViewpointDefinitionExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/ViewpointUsageExtensionsTestFixture.cs create mode 100644 SysML2.NET.Tests/Extend/WhileLoopActionUsageExtensionsTestFixture.cs diff --git a/SysML2.NET.Tests/Extend/AcceptActionUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/AcceptActionUsageExtensionsTestFixture.cs new file mode 100644 index 00000000..54896dc4 --- /dev/null +++ b/SysML2.NET.Tests/Extend/AcceptActionUsageExtensionsTestFixture.cs @@ -0,0 +1,50 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Systems.Actions; + + [TestFixture] + public class AcceptActionUsageExtensionsTestFixture + { + [Test] + public void ComputePayloadArgument_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IAcceptActionUsage)null).ComputePayloadArgument()); + } + + [Test] + public void ComputePayloadParameter_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IAcceptActionUsage)null).ComputePayloadParameter()); + } + + [Test] + public void ComputeReceiverArgument_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IAcceptActionUsage)null).ComputeReceiverArgument()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/ActionDefinitionExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ActionDefinitionExtensionsTestFixture.cs new file mode 100644 index 00000000..e9b23b70 --- /dev/null +++ b/SysML2.NET.Tests/Extend/ActionDefinitionExtensionsTestFixture.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Systems.Actions; + + [TestFixture] + public class ActionDefinitionExtensionsTestFixture + { + [Test] + public void ComputeAction_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IActionDefinition)null).ComputeAction()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/ActionUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ActionUsageExtensionsTestFixture.cs new file mode 100644 index 00000000..0511dd96 --- /dev/null +++ b/SysML2.NET.Tests/Extend/ActionUsageExtensionsTestFixture.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Systems.Actions; + + [TestFixture] + public class ActionUsageExtensionsTestFixture + { + [Test] + public void ComputeActionDefinition_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IActionUsage)null).ComputeActionDefinition()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/ActorMembershipExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ActorMembershipExtensionsTestFixture.cs new file mode 100644 index 00000000..17d6067f --- /dev/null +++ b/SysML2.NET.Tests/Extend/ActorMembershipExtensionsTestFixture.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Systems.Requirements; + + [TestFixture] + public class ActorMembershipExtensionsTestFixture + { + [Test] + public void ComputeOwnedActorParameter_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IActorMembership)null).ComputeOwnedActorParameter()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/AllocationDefinitionExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/AllocationDefinitionExtensionsTestFixture.cs new file mode 100644 index 00000000..c36804c0 --- /dev/null +++ b/SysML2.NET.Tests/Extend/AllocationDefinitionExtensionsTestFixture.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Systems.Allocations; + + [TestFixture] + public class AllocationDefinitionExtensionsTestFixture + { + [Test] + public void ComputeAllocation_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IAllocationDefinition)null).ComputeAllocation()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/AllocationUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/AllocationUsageExtensionsTestFixture.cs new file mode 100644 index 00000000..0fbc2e93 --- /dev/null +++ b/SysML2.NET.Tests/Extend/AllocationUsageExtensionsTestFixture.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Systems.Allocations; + + [TestFixture] + public class AllocationUsageExtensionsTestFixture + { + [Test] + public void ComputeAllocationDefinition_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IAllocationUsage)null).ComputeAllocationDefinition()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/AnalysisCaseDefinitionExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/AnalysisCaseDefinitionExtensionsTestFixture.cs new file mode 100644 index 00000000..f3e695f3 --- /dev/null +++ b/SysML2.NET.Tests/Extend/AnalysisCaseDefinitionExtensionsTestFixture.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Systems.AnalysisCases; + + [TestFixture] + public class AnalysisCaseDefinitionExtensionsTestFixture + { + [Test] + public void ComputeResultExpression_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IAnalysisCaseDefinition)null).ComputeResultExpression()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/AnalysisCaseUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/AnalysisCaseUsageExtensionsTestFixture.cs new file mode 100644 index 00000000..296d0351 --- /dev/null +++ b/SysML2.NET.Tests/Extend/AnalysisCaseUsageExtensionsTestFixture.cs @@ -0,0 +1,44 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Systems.AnalysisCases; + + [TestFixture] + public class AnalysisCaseUsageExtensionsTestFixture + { + [Test] + public void ComputeAnalysisCaseDefinition_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IAnalysisCaseUsage)null).ComputeAnalysisCaseDefinition()); + } + + [Test] + public void ComputeResultExpression_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IAnalysisCaseUsage)null).ComputeResultExpression()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/AnnotatingElementExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/AnnotatingElementExtensionsTestFixture.cs new file mode 100644 index 00000000..d554db0b --- /dev/null +++ b/SysML2.NET.Tests/Extend/AnnotatingElementExtensionsTestFixture.cs @@ -0,0 +1,56 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Root.Annotations; + + [TestFixture] + public class AnnotatingElementExtensionsTestFixture + { + [Test] + public void ComputeAnnotatedElement_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IAnnotatingElement)null).ComputeAnnotatedElement()); + } + + [Test] + public void ComputeAnnotation_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IAnnotatingElement)null).ComputeAnnotation()); + } + + [Test] + public void ComputeOwnedAnnotatingRelationship_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IAnnotatingElement)null).ComputeOwnedAnnotatingRelationship()); + } + + [Test] + public void ComputeOwningAnnotatingRelationship_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IAnnotatingElement)null).ComputeOwningAnnotatingRelationship()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/AnnotationExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/AnnotationExtensionsTestFixture.cs new file mode 100644 index 00000000..b6bba233 --- /dev/null +++ b/SysML2.NET.Tests/Extend/AnnotationExtensionsTestFixture.cs @@ -0,0 +1,56 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Root.Annotations; + + [TestFixture] + public class AnnotationExtensionsTestFixture + { + [Test] + public void ComputeAnnotatingElement_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IAnnotation)null).ComputeAnnotatingElement()); + } + + [Test] + public void ComputeOwnedAnnotatingElement_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IAnnotation)null).ComputeOwnedAnnotatingElement()); + } + + [Test] + public void ComputeOwningAnnotatedElement_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IAnnotation)null).ComputeOwningAnnotatedElement()); + } + + [Test] + public void ComputeOwningAnnotatingElement_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IAnnotation)null).ComputeOwningAnnotatingElement()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/AssertConstraintUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/AssertConstraintUsageExtensionsTestFixture.cs new file mode 100644 index 00000000..8e26c6cc --- /dev/null +++ b/SysML2.NET.Tests/Extend/AssertConstraintUsageExtensionsTestFixture.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Systems.Constraints ; + + [TestFixture] + public class AssertConstraintUsageExtensionsTestFixture + { + [Test] + public void ComputeAssertedConstraint_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IAssertConstraintUsage)null).ComputeAssertedConstraint()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/AssignmentActionUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/AssignmentActionUsageExtensionsTestFixture.cs new file mode 100644 index 00000000..898659d9 --- /dev/null +++ b/SysML2.NET.Tests/Extend/AssignmentActionUsageExtensionsTestFixture.cs @@ -0,0 +1,50 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Systems.Actions; + + [TestFixture] + public class AssignmentActionUsageExtensionsTestFixture + { + [Test] + public void ComputeReferent_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IAssignmentActionUsage)null).ComputeReferent()); + } + + [Test] + public void ComputeTargetArgument_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IAssignmentActionUsage)null).ComputeTargetArgument()); + } + + [Test] + public void ComputeValueExpression_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IAssignmentActionUsage)null).ComputeValueExpression()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/AssociationExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/AssociationExtensionsTestFixture.cs new file mode 100644 index 00000000..9a7f4bc6 --- /dev/null +++ b/SysML2.NET.Tests/Extend/AssociationExtensionsTestFixture.cs @@ -0,0 +1,56 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Kernel.Associations; + + [TestFixture] + public class AssociationExtensionsTestFixture + { + [Test] + public void ComputeAssociationEnd_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IAssociation)null).ComputeAssociationEnd()); + } + + [Test] + public void ComputeRelatedType_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IAssociation)null).ComputeRelatedType()); + } + + [Test] + public void ComputeSourceType_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IAssociation)null).ComputeSourceType()); + } + + [Test] + public void ComputeTargetType_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IAssociation)null).ComputeTargetType()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/AttributeUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/AttributeUsageExtensionsTestFixture.cs new file mode 100644 index 00000000..a5a50db5 --- /dev/null +++ b/SysML2.NET.Tests/Extend/AttributeUsageExtensionsTestFixture.cs @@ -0,0 +1,44 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Systems.Attributes ; + + [TestFixture] + public class AttributeUsageExtensionsTestFixture + { + [Test] + public void ComputeAttributeDefinition_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IAttributeUsage)null).ComputeAttributeDefinition()); + } + + [Test] + public void ComputeIsReference_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IAttributeUsage)null).ComputeIsReference()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/BehaviorExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/BehaviorExtensionsTestFixture.cs new file mode 100644 index 00000000..02ac7670 --- /dev/null +++ b/SysML2.NET.Tests/Extend/BehaviorExtensionsTestFixture.cs @@ -0,0 +1,44 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Kernel.Behaviors; + + [TestFixture] + public class BehaviorExtensionsTestFixture + { + [Test] + public void ComputeParameter_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IBehavior)null).ComputeParameter()); + } + + [Test] + public void ComputeStep_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IBehavior)null).ComputeStep()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/BooleanExpressionExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/BooleanExpressionExtensionsTestFixture.cs new file mode 100644 index 00000000..699ca3ec --- /dev/null +++ b/SysML2.NET.Tests/Extend/BooleanExpressionExtensionsTestFixture.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Kernel.Functions ; + + [TestFixture] + public class BooleanExpressionExtensionsTestFixture + { + [Test] + public void ComputePredicate_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IBooleanExpression)null).ComputePredicate()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/CalculationDefinitionExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/CalculationDefinitionExtensionsTestFixture.cs new file mode 100644 index 00000000..f574cf02 --- /dev/null +++ b/SysML2.NET.Tests/Extend/CalculationDefinitionExtensionsTestFixture.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Systems.Calculations; + + [TestFixture] + public class CalculationDefinitionExtensionsTestFixture + { + [Test] + public void ComputeCalculation_ThrowsNotSupportedException() + { + Assert.Throws(() => ((ICalculationDefinition)null).ComputeCalculation()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/CalculationUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/CalculationUsageExtensionsTestFixture.cs new file mode 100644 index 00000000..5767e8a8 --- /dev/null +++ b/SysML2.NET.Tests/Extend/CalculationUsageExtensionsTestFixture.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Systems.Calculations ; + + [TestFixture] + public class CalculationUsageExtensionsTestFixture + { + [Test] + public void ComputeCalculationDefinition_ThrowsNotSupportedException() + { + Assert.Throws(() => ((ICalculationUsage)null).ComputeCalculationDefinition()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/CaseDefinitionExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/CaseDefinitionExtensionsTestFixture.cs new file mode 100644 index 00000000..a9bedfd4 --- /dev/null +++ b/SysML2.NET.Tests/Extend/CaseDefinitionExtensionsTestFixture.cs @@ -0,0 +1,50 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Systems.Cases ; + + [TestFixture] + public class CaseDefinitionExtensionsTestFixture + { + [Test] + public void ComputeActorParameter_ThrowsNotSupportedException() + { + Assert.Throws(() => ((ICaseDefinition)null).ComputeActorParameter()); + } + + [Test] + public void ComputeObjectiveRequirement_ThrowsNotSupportedException() + { + Assert.Throws(() => ((ICaseDefinition)null).ComputeObjectiveRequirement()); + } + + [Test] + public void ComputeSubjectParameter_ThrowsNotSupportedException() + { + Assert.Throws(() => ((ICaseDefinition)null).ComputeSubjectParameter()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/CaseUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/CaseUsageExtensionsTestFixture.cs new file mode 100644 index 00000000..d09a2ffe --- /dev/null +++ b/SysML2.NET.Tests/Extend/CaseUsageExtensionsTestFixture.cs @@ -0,0 +1,56 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Systems.Cases; + + [TestFixture] + public class CaseUsageExtensionsTestFixture + { + [Test] + public void ComputeActorParameter_ThrowsNotSupportedException() + { + Assert.Throws(() => ((ICaseUsage)null).ComputeActorParameter()); + } + + [Test] + public void ComputeCaseDefinition_ThrowsNotSupportedException() + { + Assert.Throws(() => ((ICaseUsage)null).ComputeCaseDefinition()); + } + + [Test] + public void ComputeObjectiveRequirement_ThrowsNotSupportedException() + { + Assert.Throws(() => ((ICaseUsage)null).ComputeObjectiveRequirement()); + } + + [Test] + public void ComputeSubjectParameter_ThrowsNotSupportedException() + { + Assert.Throws(() => ((ICaseUsage)null).ComputeSubjectParameter()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/ClassifierExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ClassifierExtensionsTestFixture.cs new file mode 100644 index 00000000..4695a989 --- /dev/null +++ b/SysML2.NET.Tests/Extend/ClassifierExtensionsTestFixture.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Core.Classifiers; + + [TestFixture] + public class ClassifierExtensionsTestFixture + { + [Test] + public void ComputeOwnedSubclassification_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IClassifier)null).ComputeOwnedSubclassification()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/ConcernUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ConcernUsageExtensionsTestFixture.cs new file mode 100644 index 00000000..1aa0ff0b --- /dev/null +++ b/SysML2.NET.Tests/Extend/ConcernUsageExtensionsTestFixture.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Systems.Requirements; + + [TestFixture] + public class ConcernUsageExtensionsTestFixture + { + [Test] + public void ComputeConcernDefinition_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IConcernUsage)null).ComputeConcernDefinition()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/ConjugatedPortDefinitionExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ConjugatedPortDefinitionExtensionsTestFixture.cs new file mode 100644 index 00000000..99b4285c --- /dev/null +++ b/SysML2.NET.Tests/Extend/ConjugatedPortDefinitionExtensionsTestFixture.cs @@ -0,0 +1,44 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Systems.Ports; + + [TestFixture] + public class ConjugatedPortDefinitionExtensionsTestFixture + { + [Test] + public void ComputeOriginalPortDefinition_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IConjugatedPortDefinition)null).ComputeOriginalPortDefinition()); + } + + [Test] + public void ComputeOwnedPortConjugator_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IConjugatedPortDefinition)null).ComputeOwnedPortConjugator()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/ConjugatedPortTypingExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ConjugatedPortTypingExtensionsTestFixture.cs new file mode 100644 index 00000000..66c2dbd5 --- /dev/null +++ b/SysML2.NET.Tests/Extend/ConjugatedPortTypingExtensionsTestFixture.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Systems.Ports; + + [TestFixture] + public class ConjugatedPortTypingExtensionsTestFixture + { + [Test] + public void ComputePortDefinition_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IConjugatedPortTyping)null).ComputePortDefinition()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/ConjugationExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ConjugationExtensionsTestFixture.cs new file mode 100644 index 00000000..0c9481ef --- /dev/null +++ b/SysML2.NET.Tests/Extend/ConjugationExtensionsTestFixture.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Core.Types; + + [TestFixture] + public class ConjugationExtensionsTestFixture + { + [Test] + public void ComputeOwningType_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IConjugation)null).ComputeOwningType()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/ConnectionDefinitionExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ConnectionDefinitionExtensionsTestFixture.cs new file mode 100644 index 00000000..2dbd5578 --- /dev/null +++ b/SysML2.NET.Tests/Extend/ConnectionDefinitionExtensionsTestFixture.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Systems.Connections; + + [TestFixture] + public class ConnectionDefinitionExtensionsTestFixture + { + [Test] + public void ComputeConnectionEnd_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IConnectionDefinition)null).ComputeConnectionEnd()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/ConnectionUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ConnectionUsageExtensionsTestFixture.cs new file mode 100644 index 00000000..9ae8a147 --- /dev/null +++ b/SysML2.NET.Tests/Extend/ConnectionUsageExtensionsTestFixture.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Systems.Connections; + + [TestFixture] + public class ConnectionUsageExtensionsTestFixture + { + [Test] + public void ComputeConnectionDefinition_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IConnectionUsage)null).ComputeConnectionDefinition()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/ConnectorExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ConnectorExtensionsTestFixture.cs new file mode 100644 index 00000000..e1cf2601 --- /dev/null +++ b/SysML2.NET.Tests/Extend/ConnectorExtensionsTestFixture.cs @@ -0,0 +1,68 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Kernel.Connectors; + + [TestFixture] + public class ConnectorExtensionsTestFixture + { + [Test] + public void ComputeAssociation_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IConnector)null).ComputeAssociation()); + } + + [Test] + public void ComputeConnectorEnd_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IConnector)null).ComputeConnectorEnd()); + } + + [Test] + public void ComputeDefaultFeaturingType_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IConnector)null).ComputeDefaultFeaturingType()); + } + + [Test] + public void ComputeRelatedFeature_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IConnector)null).ComputeRelatedFeature()); + } + + [Test] + public void ComputeSourceFeature_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IConnector)null).ComputeSourceFeature()); + } + + [Test] + public void ComputeTargetFeature_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IConnector)null).ComputeTargetFeature()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/ConstraintUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ConstraintUsageExtensionsTestFixture.cs new file mode 100644 index 00000000..d8d4f61f --- /dev/null +++ b/SysML2.NET.Tests/Extend/ConstraintUsageExtensionsTestFixture.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Systems.Constraints; + + [TestFixture] + public class ConstraintUsageExtensionsTestFixture + { + [Test] + public void ComputeConstraintDefinition_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IConstraintUsage)null).ComputeConstraintDefinition()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/CrossSubsettingExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/CrossSubsettingExtensionsTestFixture.cs new file mode 100644 index 00000000..a93a9731 --- /dev/null +++ b/SysML2.NET.Tests/Extend/CrossSubsettingExtensionsTestFixture.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Core.Features; + + [TestFixture] + public class CrossSubsettingExtensionsTestFixture + { + [Test] + public void ComputeCrossingFeature_ThrowsNotSupportedException() + { + Assert.Throws(() => ((ICrossSubsetting)null).ComputeCrossingFeature()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/DefinitionExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/DefinitionExtensionsTestFixture.cs new file mode 100644 index 00000000..f9998101 --- /dev/null +++ b/SysML2.NET.Tests/Extend/DefinitionExtensionsTestFixture.cs @@ -0,0 +1,219 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Systems.DefinitionAndUsage; + + [TestFixture] + public class DefinitionExtensionsTestFixture + { + [Test] + public void ComputeDirectedUsage_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IDefinition)null).ComputeDirectedUsage()); + } + + [Test] + public void ComputeOwnedAction_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IDefinition)null).ComputeOwnedAction()); + } + + [Test] + public void ComputeOwnedAllocation_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IDefinition)null).ComputeOwnedAllocation()); + } + + [Test] + public void ComputeOwnedAnalysisCase_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IDefinition)null).ComputeOwnedAnalysisCase()); + } + + [Test] + public void ComputeOwnedAttribute_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IDefinition)null).ComputeOwnedAttribute()); + } + + [Test] + public void ComputeOwnedCalculation_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IDefinition)null).ComputeOwnedCalculation()); + } + + [Test] + public void ComputeOwnedCase_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IDefinition)null).ComputeOwnedCase()); + } + + [Test] + public void ComputeOwnedConcern_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IDefinition)null).ComputeOwnedConcern()); + } + + [Test] + public void ComputeOwnedConnection_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IDefinition)null).ComputeOwnedConnection()); + } + + + [Test] + public void ComputeOwnedConstraint_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IDefinition)null).ComputeOwnedConstraint()); + } + + [Test] + public void ComputeOwnedEnumeration_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IDefinition)null).ComputeOwnedEnumeration()); + } + + [Test] + public void ComputeOwnedFlow_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IDefinition)null).ComputeOwnedFlow()); + } + + [Test] + public void ComputeOwnedInterface_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IDefinition)null).ComputeOwnedInterface()); + } + + [Test] + public void ComputeOwnedItem_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IDefinition)null).ComputeOwnedItem()); + } + + [Test] + public void ComputeOwnedMetadata_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IDefinition)null).ComputeOwnedMetadata()); + } + + [Test] + public void ComputeOwnedOccurrence_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IDefinition)null).ComputeOwnedOccurrence()); + } + + [Test] + public void ComputeOwnedPart_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IDefinition)null).ComputeOwnedPart()); + } + + [Test] + public void ComputeOwnedPort_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IDefinition)null).ComputeOwnedPort()); + } + + [Test] + public void ComputeOwnedReference_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IDefinition)null).ComputeOwnedReference()); + } + + [Test] + public void ComputeOwnedRendering_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IDefinition)null).ComputeOwnedRendering()); + } + + [Test] + public void ComputeOwnedRequirement_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IDefinition)null).ComputeOwnedRequirement()); + } + + [Test] + public void ComputeOwnedState_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IDefinition)null).ComputeOwnedState()); + } + + [Test] + public void ComputeOwnedTransition_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IDefinition)null).ComputeOwnedTransition()); + } + + [Test] + public void ComputeOwnedUsage_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IDefinition)null).ComputeOwnedUsage()); + } + + [Test] + public void ComputeOwnedUseCase_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IDefinition)null).ComputeOwnedUseCase()); + } + + [Test] + public void ComputeOwnedVerificationCase_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IDefinition)null).ComputeOwnedVerificationCase()); + } + + [Test] + public void ComputeOwnedView_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IDefinition)null).ComputeOwnedView()); + } + + [Test] + public void ComputeOwnedViewpoint_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IDefinition)null).ComputeOwnedViewpoint()); + } + + [Test] + public void ComputeUsage_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IDefinition)null).ComputeUsage()); + } + + [Test] + public void ComputeVariant_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IDefinition)null).ComputeVariant()); + } + + [Test] + public void ComputeVariantMembership_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IDefinition)null).ComputeVariantMembership()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/DifferencingExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/DifferencingExtensionsTestFixture.cs new file mode 100644 index 00000000..948f4681 --- /dev/null +++ b/SysML2.NET.Tests/Extend/DifferencingExtensionsTestFixture.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Core.Types; + + [TestFixture] + public class DifferencingExtensionsTestFixture + { + [Test] + public void ComputeTypeDifferenced_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IDifferencing)null).ComputeTypeDifferenced()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/DisjoiningExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/DisjoiningExtensionsTestFixture.cs new file mode 100644 index 00000000..d4b0c0f8 --- /dev/null +++ b/SysML2.NET.Tests/Extend/DisjoiningExtensionsTestFixture.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Core.Types; + + [TestFixture] + public class DisjoiningExtensionsTestFixture + { + [Test] + public void ComputeOwningType_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IDisjoining)null).ComputeOwningType()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/DocumentationExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/DocumentationExtensionsTestFixture.cs new file mode 100644 index 00000000..8d248cbb --- /dev/null +++ b/SysML2.NET.Tests/Extend/DocumentationExtensionsTestFixture.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Root.Annotations; + + [TestFixture] + public class DocumentationExtensionsTestFixture + { + [Test] + public void ComputeDocumentedElement_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IDocumentation)null).ComputeDocumentedElement()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/ElementExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ElementExtensionsTestFixture.cs new file mode 100644 index 00000000..df68e44d --- /dev/null +++ b/SysML2.NET.Tests/Extend/ElementExtensionsTestFixture.cs @@ -0,0 +1,98 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Root.Elements; + + [TestFixture] + public class ElementExtensionsTestFixture + { + [Test] + public void ComputeDocumentation_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IElement)null).ComputeDocumentation()); + } + + [Test] + public void ComputeIsLibraryElement_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IElement)null).ComputeIsLibraryElement()); + } + + [Test] + public void ComputeName_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IElement)null).ComputeName()); + } + + [Test] + public void ComputeOwnedAnnotation_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IElement)null).ComputeOwnedAnnotation()); + } + + [Test] + public void ComputeOwnedElement_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IElement)null).ComputeOwnedElement()); + } + + [Test] + public void ComputeOwner_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IElement)null).ComputeOwner()); + } + + [Test] + public void ComputeOwningMembership_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IElement)null).ComputeOwningMembership()); + } + + [Test] + public void ComputeOwningNamespace_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IElement)null).ComputeOwningNamespace()); + } + + [Test] + public void ComputeQualifiedName_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IElement)null).ComputeQualifiedName()); + } + + [Test] + public void ComputeShortName_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IElement)null).ComputeShortName()); + } + + [Test] + public void ComputeTextualRepresentation_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IElement)null).ComputeTextualRepresentation()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/ElementFilterMembershipExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ElementFilterMembershipExtensionsTestFixture.cs new file mode 100644 index 00000000..82bb41d8 --- /dev/null +++ b/SysML2.NET.Tests/Extend/ElementFilterMembershipExtensionsTestFixture.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Kernel.Packages; + + [TestFixture] + public class ElementFilterMembershipExtensionsTestFixture + { + [Test] + public void ComputeCondition_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IElementFilterMembership)null).ComputeCondition()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/EndFeatureMembershipExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/EndFeatureMembershipExtensionsTestFixture.cs new file mode 100644 index 00000000..579043b4 --- /dev/null +++ b/SysML2.NET.Tests/Extend/EndFeatureMembershipExtensionsTestFixture.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Core.Features; + + [TestFixture] + public class EndFeatureMembershipExtensionsTestFixture + { + [Test] + public void ComputeOwnedMemberFeature_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IEndFeatureMembership)null).ComputeOwnedMemberFeature()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/EnumerationDefinitionExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/EnumerationDefinitionExtensionsTestFixture.cs new file mode 100644 index 00000000..e3fa6ba7 --- /dev/null +++ b/SysML2.NET.Tests/Extend/EnumerationDefinitionExtensionsTestFixture.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Systems.Enumerations; + + [TestFixture] + public class EnumerationDefinitionExtensionsTestFixture + { + [Test] + public void ComputeEnumeratedValue_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IEnumerationDefinition)null).ComputeEnumeratedValue()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/EnumerationUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/EnumerationUsageExtensionsTestFixture.cs new file mode 100644 index 00000000..660ebd66 --- /dev/null +++ b/SysML2.NET.Tests/Extend/EnumerationUsageExtensionsTestFixture.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Systems.Enumerations; + + [TestFixture] + public class EnumerationUsageExtensionsTestFixture + { + [Test] + public void ComputeEnumerationDefinition_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IEnumerationUsage)null).ComputeEnumerationDefinition()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/EventOccurrenceUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/EventOccurrenceUsageExtensionsTestFixture.cs new file mode 100644 index 00000000..66283618 --- /dev/null +++ b/SysML2.NET.Tests/Extend/EventOccurrenceUsageExtensionsTestFixture.cs @@ -0,0 +1,44 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Systems.Occurrences; + + [TestFixture] + public class EventOccurrenceUsageExtensionsTestFixture + { + [Test] + public void ComputeEventOccurrence_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IEventOccurrenceUsage)null).ComputeEventOccurrence()); + } + + [Test] + public void ComputeIsReference_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IEventOccurrenceUsage)null).ComputeIsReference()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/ExhibitStateUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ExhibitStateUsageExtensionsTestFixture.cs new file mode 100644 index 00000000..b4f11a09 --- /dev/null +++ b/SysML2.NET.Tests/Extend/ExhibitStateUsageExtensionsTestFixture.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Systems.States; + + [TestFixture] + public class ExhibitStateUsageExtensionsTestFixture + { + [Test] + public void ComputeExhibitedState_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IExhibitStateUsage)null).ComputeExhibitedState()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/ExpressionExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ExpressionExtensionsTestFixture.cs new file mode 100644 index 00000000..6449ab53 --- /dev/null +++ b/SysML2.NET.Tests/Extend/ExpressionExtensionsTestFixture.cs @@ -0,0 +1,50 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Kernel.Functions; + + [TestFixture] + public class ExpressionExtensionsTestFixture + { + [Test] + public void ComputeFunction_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IExpression)null).ComputeFunction()); + } + + [Test] + public void ComputeIsModelLevelEvaluable_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IExpression)null).ComputeIsModelLevelEvaluable()); + } + + [Test] + public void ComputeResult_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IExpression)null).ComputeResult()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/FeatureChainExpressionExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/FeatureChainExpressionExtensionsTestFixture.cs new file mode 100644 index 00000000..9d1be1d3 --- /dev/null +++ b/SysML2.NET.Tests/Extend/FeatureChainExpressionExtensionsTestFixture.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Kernel.Expressions; + + [TestFixture] + public class FeatureChainExpressionExtensionsTestFixture + { + [Test] + public void ComputeTargetFeature_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IFeatureChainExpression)null).ComputeTargetFeature()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/FeatureChainingExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/FeatureChainingExtensionsTestFixture.cs new file mode 100644 index 00000000..fa55eaa5 --- /dev/null +++ b/SysML2.NET.Tests/Extend/FeatureChainingExtensionsTestFixture.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Core.Features; + + [TestFixture] + public class FeatureChainingExtensionsTestFixture + { + [Test] + public void ComputeFeatureChained_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IFeatureChaining)null).ComputeFeatureChained()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/FeatureExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/FeatureExtensionsTestFixture.cs new file mode 100644 index 00000000..5a01ca53 --- /dev/null +++ b/SysML2.NET.Tests/Extend/FeatureExtensionsTestFixture.cs @@ -0,0 +1,128 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Core.Features; + + [TestFixture] + public class FeatureExtensionsTestFixture + { + [Test] + public void ComputeChainingFeature_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IFeature)null).ComputeChainingFeature()); + } + + [Test] + public void ComputeCrossFeature_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IFeature)null).ComputeCrossFeature()); + } + + [Test] + public void ComputeEndOwningType_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IFeature)null).ComputeEndOwningType()); + } + + [Test] + public void ComputeFeatureTarget_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IFeature)null).ComputeFeatureTarget()); + } + + [Test] + public void ComputeFeaturingType_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IFeature)null).ComputeFeaturingType()); + } + + [Test] + public void ComputeOwnedCrossSubsetting_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IFeature)null).ComputeOwnedCrossSubsetting()); + } + + [Test] + public void ComputeOwnedFeatureChaining_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IFeature)null).ComputeOwnedFeatureChaining()); + } + + [Test] + public void ComputeOwnedFeatureInverting_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IFeature)null).ComputeOwnedFeatureInverting()); + } + + [Test] + public void ComputeOwnedRedefinition_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IFeature)null).ComputeOwnedRedefinition()); + } + + [Test] + public void ComputeOwnedReferenceSubsetting_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IFeature)null).ComputeOwnedReferenceSubsetting()); + } + + [Test] + public void ComputeOwnedSubsetting_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IFeature)null).ComputeOwnedSubsetting()); + } + + [Test] + public void ComputeOwnedTypeFeaturing_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IFeature)null).ComputeOwnedTypeFeaturing()); + } + + [Test] + public void ComputeOwnedTyping_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IFeature)null).ComputeOwnedTyping()); + } + + [Test] + public void ComputeOwningFeatureMembership_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IFeature)null).ComputeOwningFeatureMembership()); + } + + [Test] + public void ComputeOwningType_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IFeature)null).ComputeOwningType()); + } + + [Test] + public void ComputeType_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IFeature)null).ComputeType()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/FeatureInvertingExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/FeatureInvertingExtensionsTestFixture.cs new file mode 100644 index 00000000..575607e8 --- /dev/null +++ b/SysML2.NET.Tests/Extend/FeatureInvertingExtensionsTestFixture.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Core.Features; + + [TestFixture] + public class FeatureInvertingExtensionsTestFixture + { + [Test] + public void ComputeOwningFeature_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IFeatureInverting)null).ComputeOwningFeature()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/FeatureMembershipExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/FeatureMembershipExtensionsTestFixture.cs new file mode 100644 index 00000000..57e8c6dc --- /dev/null +++ b/SysML2.NET.Tests/Extend/FeatureMembershipExtensionsTestFixture.cs @@ -0,0 +1,44 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Core.Types; + + [TestFixture] + public class FeatureMembershipExtensionsTestFixture + { + [Test] + public void ComputeOwnedMemberFeature_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IFeatureMembership)null).ComputeOwnedMemberFeature()); + } + + [Test] + public void ComputeOwningType_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IFeatureMembership)null).ComputeOwningType()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/FeatureReferenceExpressionExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/FeatureReferenceExpressionExtensionsTestFixture.cs new file mode 100644 index 00000000..3e57f3ba --- /dev/null +++ b/SysML2.NET.Tests/Extend/FeatureReferenceExpressionExtensionsTestFixture.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Kernel.Expressions; + + [TestFixture] + public class FeatureReferenceExpressionExtensionsTestFixture + { + [Test] + public void ComputeReferent_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IFeatureReferenceExpression)null).ComputeReferent()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/FeatureTypingExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/FeatureTypingExtensionsTestFixture.cs new file mode 100644 index 00000000..edc2a70d --- /dev/null +++ b/SysML2.NET.Tests/Extend/FeatureTypingExtensionsTestFixture.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Core.Features; + + [TestFixture] + public class FeatureTypingExtensionsTestFixture + { + [Test] + public void ComputeOwningFeature_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IFeatureTyping)null).ComputeOwningFeature()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/FeatureValueExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/FeatureValueExtensionsTestFixture.cs new file mode 100644 index 00000000..3400acc5 --- /dev/null +++ b/SysML2.NET.Tests/Extend/FeatureValueExtensionsTestFixture.cs @@ -0,0 +1,44 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Kernel.FeatureValues; + + [TestFixture] + public class FeatureValueExtensionsTestFixture + { + [Test] + public void ComputeFeatureWithValue_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IFeatureValue)null).ComputeFeatureWithValue()); + } + + [Test] + public void ComputeValue_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IFeatureValue)null).ComputeValue()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/FlowDefinitionExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/FlowDefinitionExtensionsTestFixture.cs new file mode 100644 index 00000000..d071df89 --- /dev/null +++ b/SysML2.NET.Tests/Extend/FlowDefinitionExtensionsTestFixture.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Systems.Flows; + + [TestFixture] + public class FlowDefinitionExtensionsTestFixture + { + [Test] + public void ComputeFlowEnd_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IFlowDefinition)null).ComputeFlowEnd()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/FlowExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/FlowExtensionsTestFixture.cs new file mode 100644 index 00000000..d966dac8 --- /dev/null +++ b/SysML2.NET.Tests/Extend/FlowExtensionsTestFixture.cs @@ -0,0 +1,68 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Kernel.Interactions; + + [TestFixture] + public class FlowExtensionsTestFixture + { + [Test] + public void ComputeFlowEnd_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IFlow)null).ComputeFlowEnd()); + } + + [Test] + public void ComputeInteraction_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IFlow)null).ComputeInteraction()); + } + + [Test] + public void ComputePayloadFeature_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IFlow)null).ComputePayloadFeature()); + } + + [Test] + public void ComputePayloadType_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IFlow)null).ComputePayloadType()); + } + + [Test] + public void ComputeSourceOutputFeature_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IFlow)null).ComputeSourceOutputFeature()); + } + + [Test] + public void ComputeTargetInputFeature_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IFlow)null).ComputeTargetInputFeature()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/FlowUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/FlowUsageExtensionsTestFixture.cs new file mode 100644 index 00000000..c872e295 --- /dev/null +++ b/SysML2.NET.Tests/Extend/FlowUsageExtensionsTestFixture.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Systems.Flows; + + [TestFixture] + public class FlowUsageExtensionsTestFixture + { + [Test] + public void ComputeFlowDefinition_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IFlowUsage)null).ComputeFlowDefinition()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/ForLoopActionUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ForLoopActionUsageExtensionsTestFixture.cs new file mode 100644 index 00000000..80e8f523 --- /dev/null +++ b/SysML2.NET.Tests/Extend/ForLoopActionUsageExtensionsTestFixture.cs @@ -0,0 +1,44 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Systems.Actions; + + [TestFixture] + public class ForLoopActionUsageExtensionsTestFixture + { + [Test] + public void ComputeLoopVariable_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IForLoopActionUsage)null).ComputeLoopVariable()); + } + + [Test] + public void ComputeSeqArgument_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IForLoopActionUsage)null).ComputeSeqArgument()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/FramedConcernMembershipExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/FramedConcernMembershipExtensionsTestFixture.cs new file mode 100644 index 00000000..a0ff1028 --- /dev/null +++ b/SysML2.NET.Tests/Extend/FramedConcernMembershipExtensionsTestFixture.cs @@ -0,0 +1,43 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Systems.Requirements; + + [TestFixture] + public class FramedConcernMembershipExtensionsTestFixture + { + [Test] + public void ComputeOwnedConcern_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IFramedConcernMembership)null).ComputeOwnedConcern()); + } + [Test] + public void ComputeReferencedConcern_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IFramedConcernMembership)null).ComputeReferencedConcern()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/FunctionExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/FunctionExtensionsTestFixture.cs new file mode 100644 index 00000000..ee4c1b53 --- /dev/null +++ b/SysML2.NET.Tests/Extend/FunctionExtensionsTestFixture.cs @@ -0,0 +1,50 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Kernel.Functions; + + [TestFixture] + public class FunctionExtensionsTestFixture + { + [Test] + public void ComputeExpression_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IFunction)null).ComputeExpression()); + } + + [Test] + public void ComputeIsModelLevelEvaluable_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IFunction)null).ComputeIsModelLevelEvaluable()); + } + + [Test] + public void ComputeResult_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IFunction)null).ComputeResult()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/IfActionUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/IfActionUsageExtensionsTestFixture.cs new file mode 100644 index 00000000..f6cc3122 --- /dev/null +++ b/SysML2.NET.Tests/Extend/IfActionUsageExtensionsTestFixture.cs @@ -0,0 +1,50 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Systems.Actions; + + [TestFixture] + public class IfActionUsageExtensionsTestFixture + { + [Test] + public void ComputeElseAction_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IIfActionUsage)null).ComputeElseAction()); + } + + [Test] + public void ComputeIfArgument_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IIfActionUsage)null).ComputeIfArgument()); + } + + [Test] + public void ComputeThenAction_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IIfActionUsage)null).ComputeThenAction()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/ImportExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ImportExtensionsTestFixture.cs new file mode 100644 index 00000000..da9adf40 --- /dev/null +++ b/SysML2.NET.Tests/Extend/ImportExtensionsTestFixture.cs @@ -0,0 +1,44 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Root.Namespaces; + + [TestFixture] + public class ImportExtensionsTestFixture + { + [Test] + public void ComputeImportedElement_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IImport)null).ComputeImportedElement()); + } + + [Test] + public void ComputeImportOwningNamespace_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IImport)null).ComputeImportOwningNamespace()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/IncludeUseCaseUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/IncludeUseCaseUsageExtensionsTestFixture.cs new file mode 100644 index 00000000..bc20f8a6 --- /dev/null +++ b/SysML2.NET.Tests/Extend/IncludeUseCaseUsageExtensionsTestFixture.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Systems.UseCases; + + [TestFixture] + public class IncludeUseCaseUsageExtensionsTestFixture + { + [Test] + public void ComputeUseCaseIncluded_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IIncludeUseCaseUsage)null).ComputeUseCaseIncluded()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/InstantiationExpressionExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/InstantiationExpressionExtensionsTestFixture.cs new file mode 100644 index 00000000..7a90e379 --- /dev/null +++ b/SysML2.NET.Tests/Extend/InstantiationExpressionExtensionsTestFixture.cs @@ -0,0 +1,44 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Kernel.Expressions; + + [TestFixture] + public class InstantiationExpressionExtensionsTestFixture + { + [Test] + public void ComputeArgument_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IInstantiationExpression)null).ComputeArgument()); + } + + [Test] + public void ComputeInstantiatedType_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IInstantiationExpression)null).ComputeInstantiatedType()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/InterfaceDefinitionExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/InterfaceDefinitionExtensionsTestFixture.cs new file mode 100644 index 00000000..15c08524 --- /dev/null +++ b/SysML2.NET.Tests/Extend/InterfaceDefinitionExtensionsTestFixture.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Systems.Interfaces; + + [TestFixture] + public class InterfaceDefinitionExtensionsTestFixture + { + [Test] + public void ComputeInterfaceEnd_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IInterfaceDefinition)null).ComputeInterfaceEnd()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/InterfaceUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/InterfaceUsageExtensionsTestFixture.cs new file mode 100644 index 00000000..4d85e752 --- /dev/null +++ b/SysML2.NET.Tests/Extend/InterfaceUsageExtensionsTestFixture.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Systems.Interfaces; + + [TestFixture] + public class InterfaceUsageExtensionsTestFixture + { + [Test] + public void ComputeInterfaceDefinition_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IInterfaceUsage)null).ComputeInterfaceDefinition()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/IntersectingExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/IntersectingExtensionsTestFixture.cs new file mode 100644 index 00000000..d8c3a1c6 --- /dev/null +++ b/SysML2.NET.Tests/Extend/IntersectingExtensionsTestFixture.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Core.Types; + + [TestFixture] + public class IntersectingExtensionsTestFixture + { + [Test] + public void ComputeTypeIntersected_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IIntersecting)null).ComputeTypeIntersected()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/ItemUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ItemUsageExtensionsTestFixture.cs new file mode 100644 index 00000000..f03e1709 --- /dev/null +++ b/SysML2.NET.Tests/Extend/ItemUsageExtensionsTestFixture.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Systems.Items; + + [TestFixture] + public class ItemUsageExtensionsTestFixture + { + [Test] + public void ComputeItemDefinition_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IItemUsage)null).ComputeItemDefinition()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/LoopActionUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/LoopActionUsageExtensionsTestFixture.cs new file mode 100644 index 00000000..f1dadcb2 --- /dev/null +++ b/SysML2.NET.Tests/Extend/LoopActionUsageExtensionsTestFixture.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Systems.Actions; + + [TestFixture] + public class LoopActionUsageExtensionsTestFixture + { + [Test] + public void ComputeBodyAction_ThrowsNotSupportedException() + { + Assert.Throws(() => ((ILoopActionUsage)null).ComputeBodyAction()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/MembershipExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/MembershipExtensionsTestFixture.cs new file mode 100644 index 00000000..73c3f25f --- /dev/null +++ b/SysML2.NET.Tests/Extend/MembershipExtensionsTestFixture.cs @@ -0,0 +1,44 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Root.Namespaces; + + [TestFixture] + public class MembershipExtensionsTestFixture + { + [Test] + public void ComputeMemberElementId_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IMembership)null).ComputeMemberElementId()); + } + + [Test] + public void ComputeMembershipOwningNamespace_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IMembership)null).ComputeMembershipOwningNamespace()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/MetadataAccessExpressionExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/MetadataAccessExpressionExtensionsTestFixture.cs new file mode 100644 index 00000000..afe33a21 --- /dev/null +++ b/SysML2.NET.Tests/Extend/MetadataAccessExpressionExtensionsTestFixture.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Kernel.Expressions; + + [TestFixture] + public class MetadataAccessExpressionExtensionsTestFixture + { + [Test] + public void ComputeReferencedElement_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IMetadataAccessExpression)null).ComputeReferencedElement()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/MetadataFeatureExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/MetadataFeatureExtensionsTestFixture.cs new file mode 100644 index 00000000..92c251f7 --- /dev/null +++ b/SysML2.NET.Tests/Extend/MetadataFeatureExtensionsTestFixture.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Kernel.Metadata; + + [TestFixture] + public class MetadataFeatureExtensionsTestFixture + { + [Test] + public void ComputeMetaclass_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IMetadataFeature)null).ComputeMetaclass()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/MetadataUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/MetadataUsageExtensionsTestFixture.cs new file mode 100644 index 00000000..8a754741 --- /dev/null +++ b/SysML2.NET.Tests/Extend/MetadataUsageExtensionsTestFixture.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Systems.Metadata; + + [TestFixture] + public class MetadataUsageExtensionsTestFixture + { + [Test] + public void ComputeMetadataDefinition_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IMetadataUsage)null).ComputeMetadataDefinition()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/MultiplicityRangeExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/MultiplicityRangeExtensionsTestFixture.cs new file mode 100644 index 00000000..fc6747b4 --- /dev/null +++ b/SysML2.NET.Tests/Extend/MultiplicityRangeExtensionsTestFixture.cs @@ -0,0 +1,50 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Kernel.Multiplicities; + + [TestFixture] + public class MultiplicityRangeExtensionsTestFixture + { + [Test] + public void ComputeBound_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IMultiplicityRange)null).ComputeBound()); + } + + [Test] + public void ComputeLowerBound_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IMultiplicityRange)null).ComputeLowerBound()); + } + + [Test] + public void ComputeUpperBound_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IMultiplicityRange)null).ComputeUpperBound()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/ObjectiveMembershipExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ObjectiveMembershipExtensionsTestFixture.cs new file mode 100644 index 00000000..61c91375 --- /dev/null +++ b/SysML2.NET.Tests/Extend/ObjectiveMembershipExtensionsTestFixture.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Systems.Cases; + + [TestFixture] + public class ObjectiveMembershipExtensionsTestFixture + { + [Test] + public void ComputeOwnedObjectiveRequirement_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IObjectiveMembership)null).ComputeOwnedObjectiveRequirement()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/OccurrenceUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/OccurrenceUsageExtensionsTestFixture.cs new file mode 100644 index 00000000..38218a38 --- /dev/null +++ b/SysML2.NET.Tests/Extend/OccurrenceUsageExtensionsTestFixture.cs @@ -0,0 +1,44 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Systems.Occurrences; + + [TestFixture] + public class OccurrenceUsageExtensionsTestFixture + { + [Test] + public void ComputeIndividualDefinition_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IOccurrenceUsage)null).ComputeIndividualDefinition()); + } + + [Test] + public void ComputeOccurrenceDefinition_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IOccurrenceUsage)null).ComputeOccurrenceDefinition()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/OwningMembershipExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/OwningMembershipExtensionsTestFixture.cs new file mode 100644 index 00000000..a8f71a80 --- /dev/null +++ b/SysML2.NET.Tests/Extend/OwningMembershipExtensionsTestFixture.cs @@ -0,0 +1,56 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Root.Namespaces; + + [TestFixture] + public class OwningMembershipExtensionsTestFixture + { + [Test] + public void ComputeOwnedMemberElement_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IOwningMembership)null).ComputeOwnedMemberElement()); + } + + [Test] + public void ComputeOwnedMemberElementId_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IOwningMembership)null).ComputeOwnedMemberElementId()); + } + + [Test] + public void ComputeOwnedMemberName_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IOwningMembership)null).ComputeOwnedMemberName()); + } + + [Test] + public void ComputeOwnedMemberShortName_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IOwningMembership)null).ComputeOwnedMemberShortName()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/PackageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/PackageExtensionsTestFixture.cs new file mode 100644 index 00000000..9aa5101b --- /dev/null +++ b/SysML2.NET.Tests/Extend/PackageExtensionsTestFixture.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Kernel.Packages; + + [TestFixture] + public class PackageExtensionsTestFixture + { + [Test] + public void ComputeFilterCondition_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IPackage)null).ComputeFilterCondition()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/ParameterMembershipExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ParameterMembershipExtensionsTestFixture.cs new file mode 100644 index 00000000..a852d8d2 --- /dev/null +++ b/SysML2.NET.Tests/Extend/ParameterMembershipExtensionsTestFixture.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Kernel.Behaviors; + + [TestFixture] + public class ParameterMembershipExtensionsTestFixture + { + [Test] + public void ComputeOwnedMemberParameter_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IParameterMembership)null).ComputeOwnedMemberParameter()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/PartUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/PartUsageExtensionsTestFixture.cs new file mode 100644 index 00000000..69d3be3a --- /dev/null +++ b/SysML2.NET.Tests/Extend/PartUsageExtensionsTestFixture.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Systems.Parts; + + [TestFixture] + public class PartUsageExtensionsTestFixture + { + [Test] + public void ComputePartDefinition_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IPartUsage)null).ComputePartDefinition()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/PerformActionUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/PerformActionUsageExtensionsTestFixture.cs new file mode 100644 index 00000000..311b93bf --- /dev/null +++ b/SysML2.NET.Tests/Extend/PerformActionUsageExtensionsTestFixture.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Systems.Actions; + + [TestFixture] + public class PerformActionUsageExtensionsTestFixture + { + [Test] + public void ComputePerformedAction_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IPerformActionUsage)null).ComputePerformedAction()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/PortConjugationExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/PortConjugationExtensionsTestFixture.cs new file mode 100644 index 00000000..227aa5d6 --- /dev/null +++ b/SysML2.NET.Tests/Extend/PortConjugationExtensionsTestFixture.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Systems.Ports; + + [TestFixture] + public class PortConjugationExtensionsTestFixture + { + [Test] + public void ComputeConjugatedPortDefinition_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IPortConjugation)null).ComputeConjugatedPortDefinition()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/PortDefinitionExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/PortDefinitionExtensionsTestFixture.cs new file mode 100644 index 00000000..628f22b5 --- /dev/null +++ b/SysML2.NET.Tests/Extend/PortDefinitionExtensionsTestFixture.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Systems.Ports; + + [TestFixture] + public class PortDefinitionExtensionsTestFixture + { + [Test] + public void ComputeConjugatedPortDefinition_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IPortDefinition)null).ComputeConjugatedPortDefinition()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/PortUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/PortUsageExtensionsTestFixture.cs new file mode 100644 index 00000000..66102cf3 --- /dev/null +++ b/SysML2.NET.Tests/Extend/PortUsageExtensionsTestFixture.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Systems.Ports; + + [TestFixture] + public class PortUsageExtensionsTestFixture + { + [Test] + public void ComputePortDefinition_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IPortUsage)null).ComputePortDefinition()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/ReferenceSubsettingExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ReferenceSubsettingExtensionsTestFixture.cs new file mode 100644 index 00000000..aaffc617 --- /dev/null +++ b/SysML2.NET.Tests/Extend/ReferenceSubsettingExtensionsTestFixture.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Core.Features; + + [TestFixture] + public class ReferenceSubsettingExtensionsTestFixture + { + [Test] + public void ComputeReferencingFeature_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IReferenceSubsetting)null).ComputeReferencingFeature()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/ReferenceUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ReferenceUsageExtensionsTestFixture.cs new file mode 100644 index 00000000..b4078ad5 --- /dev/null +++ b/SysML2.NET.Tests/Extend/ReferenceUsageExtensionsTestFixture.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Systems.DefinitionAndUsage; + + [TestFixture] + public class ReferenceUsageExtensionsTestFixture + { + [Test] + public void ComputeIsReference_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IReferenceUsage)null).ComputeIsReference()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/RelationshipExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/RelationshipExtensionsTestFixture.cs new file mode 100644 index 00000000..2887f468 --- /dev/null +++ b/SysML2.NET.Tests/Extend/RelationshipExtensionsTestFixture.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Root.Elements; + + [TestFixture] + public class RelationshipExtensionsTestFixture + { + [Test] + public void ComputeRelatedElement_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IRelationship)null).ComputeRelatedElement()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/RenderingDefinitionExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/RenderingDefinitionExtensionsTestFixture.cs new file mode 100644 index 00000000..6684c890 --- /dev/null +++ b/SysML2.NET.Tests/Extend/RenderingDefinitionExtensionsTestFixture.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Systems.Views; + + [TestFixture] + public class RenderingDefinitionExtensionsTestFixture + { + [Test] + public void ComputeRendering_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IRenderingDefinition)null).ComputeRendering()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/RenderingUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/RenderingUsageExtensionsTestFixture.cs new file mode 100644 index 00000000..4fb398ca --- /dev/null +++ b/SysML2.NET.Tests/Extend/RenderingUsageExtensionsTestFixture.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Systems.Views; + + [TestFixture] + public class RenderingUsageExtensionsTestFixture + { + [Test] + public void ComputeRenderingDefinition_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IRenderingUsage)null).ComputeRenderingDefinition()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/RequirementConstraintMembershipExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/RequirementConstraintMembershipExtensionsTestFixture.cs new file mode 100644 index 00000000..9b43ab3f --- /dev/null +++ b/SysML2.NET.Tests/Extend/RequirementConstraintMembershipExtensionsTestFixture.cs @@ -0,0 +1,44 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Systems.Requirements; + + [TestFixture] + public class RequirementConstraintMembershipExtensionsTestFixture + { + [Test] + public void ComputeOwnedConstraint_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IRequirementConstraintMembership)null).ComputeOwnedConstraint()); + } + + [Test] + public void ComputeReferencedConstraint_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IRequirementConstraintMembership)null).ComputeReferencedConstraint()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/RequirementDefinitionExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/RequirementDefinitionExtensionsTestFixture.cs new file mode 100644 index 00000000..90f1066b --- /dev/null +++ b/SysML2.NET.Tests/Extend/RequirementDefinitionExtensionsTestFixture.cs @@ -0,0 +1,73 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Systems.Requirements; + + [TestFixture] + public class RequirementDefinitionExtensionsTestFixture + { + [Test] + public void ComputeActorParameter_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IRequirementDefinition)null).ComputeActorParameter()); + } + + [Test] + public void ComputeAssumedConstraint_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IRequirementDefinition)null).ComputeAssumedConstraint()); + } + + [Test] + public void ComputeFramedConcern_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IRequirementDefinition)null).ComputeFramedConcern()); + } + [Test] + public void ComputeRequiredConstraint_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IRequirementDefinition)null).ComputeRequiredConstraint()); + } + + [Test] + public void ComputeStakeholderParameter_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IRequirementDefinition)null).ComputeStakeholderParameter()); + } + + [Test] + public void ComputeSubjectParameter_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IRequirementDefinition)null).ComputeSubjectParameter()); + } + + [Test] + public void ComputeText_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IRequirementDefinition)null).ComputeText()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/RequirementUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/RequirementUsageExtensionsTestFixture.cs new file mode 100644 index 00000000..6495c4c1 --- /dev/null +++ b/SysML2.NET.Tests/Extend/RequirementUsageExtensionsTestFixture.cs @@ -0,0 +1,80 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Systems.Requirements; + + [TestFixture] + public class RequirementUsageExtensionsTestFixture + { + [Test] + public void ComputeActorParameter_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IRequirementUsage)null).ComputeActorParameter()); + } + + [Test] + public void ComputeAssumedConstraint_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IRequirementUsage)null).ComputeAssumedConstraint()); + } + + [Test] + public void ComputeFramedConcern_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IRequirementUsage)null).ComputeFramedConcern()); + } + + [Test] + public void ComputeRequiredConstraint_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IRequirementUsage)null).ComputeRequiredConstraint()); + } + + [Test] + public void ComputeRequirementDefinition_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IRequirementUsage)null).ComputeRequirementDefinition()); + } + + [Test] + public void ComputeStakeholderParameter_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IRequirementUsage)null).ComputeStakeholderParameter()); + } + + [Test] + public void ComputeSubjectParameter_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IRequirementUsage)null).ComputeSubjectParameter()); + } + + [Test] + public void ComputeText_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IRequirementUsage)null).ComputeText()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/RequirementVerificationMembershipExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/RequirementVerificationMembershipExtensionsTestFixture.cs new file mode 100644 index 00000000..7a0d53b3 --- /dev/null +++ b/SysML2.NET.Tests/Extend/RequirementVerificationMembershipExtensionsTestFixture.cs @@ -0,0 +1,44 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Systems.VerificationCases; + + [TestFixture] + public class RequirementVerificationMembershipExtensionsTestFixture + { + [Test] + public void ComputeOwnedRequirement_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IRequirementVerificationMembership)null).ComputeOwnedRequirement()); + } + + [Test] + public void ComputeVerifiedRequirement_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IRequirementVerificationMembership)null).ComputeVerifiedRequirement()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/ResultExpressionMembershipExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ResultExpressionMembershipExtensionsTestFixture.cs new file mode 100644 index 00000000..17c96cf9 --- /dev/null +++ b/SysML2.NET.Tests/Extend/ResultExpressionMembershipExtensionsTestFixture.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Kernel.Functions; + + [TestFixture] + public class ResultExpressionMembershipExtensionsTestFixture + { + [Test] + public void ComputeOwnedResultExpression_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IResultExpressionMembership)null).ComputeOwnedResultExpression()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/SatisfyRequirementUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/SatisfyRequirementUsageExtensionsTestFixture.cs new file mode 100644 index 00000000..7bbd2f55 --- /dev/null +++ b/SysML2.NET.Tests/Extend/SatisfyRequirementUsageExtensionsTestFixture.cs @@ -0,0 +1,43 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Systems.Requirements; + + [TestFixture] + public class SatisfyRequirementUsageExtensionsTestFixture + { + [Test] + public void ComputeSatisfiedRequirement_ThrowsNotSupportedException() + { + Assert.Throws(() => ((ISatisfyRequirementUsage)null).ComputeSatisfiedRequirement()); + } + [Test] + public void ComputeSatisfyingFeature_ThrowsNotSupportedException() + { + Assert.Throws(() => ((ISatisfyRequirementUsage)null).ComputeSatisfyingFeature()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/SendActionUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/SendActionUsageExtensionsTestFixture.cs new file mode 100644 index 00000000..e827c974 --- /dev/null +++ b/SysML2.NET.Tests/Extend/SendActionUsageExtensionsTestFixture.cs @@ -0,0 +1,50 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Systems.Actions; + + [TestFixture] + public class SendActionUsageExtensionsTestFixture + { + [Test] + public void ComputePayloadArgument_ThrowsNotSupportedException() + { + Assert.Throws(() => ((ISendActionUsage)null).ComputePayloadArgument()); + } + + [Test] + public void ComputeReceiverArgument_ThrowsNotSupportedException() + { + Assert.Throws(() => ((ISendActionUsage)null).ComputeReceiverArgument()); + } + + [Test] + public void ComputeSenderArgument_ThrowsNotSupportedException() + { + Assert.Throws(() => ((ISendActionUsage)null).ComputeSenderArgument()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/SpecializationExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/SpecializationExtensionsTestFixture.cs new file mode 100644 index 00000000..ca1cf51a --- /dev/null +++ b/SysML2.NET.Tests/Extend/SpecializationExtensionsTestFixture.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Core.Types; + + [TestFixture] + public class SpecializationExtensionsTestFixture + { + [Test] + public void ComputeOwningType_ThrowsNotSupportedException() + { + Assert.Throws(() => ((ISpecialization)null).ComputeOwningType()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/StakeholderMembershipExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/StakeholderMembershipExtensionsTestFixture.cs new file mode 100644 index 00000000..90b0b52c --- /dev/null +++ b/SysML2.NET.Tests/Extend/StakeholderMembershipExtensionsTestFixture.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Systems.Requirements; + + [TestFixture] + public class StakeholderMembershipExtensionsTestFixture + { + [Test] + public void ComputeOwnedStakeholderParameter_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IStakeholderMembership)null).ComputeOwnedStakeholderParameter()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/StateDefinitionExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/StateDefinitionExtensionsTestFixture.cs new file mode 100644 index 00000000..b51404bd --- /dev/null +++ b/SysML2.NET.Tests/Extend/StateDefinitionExtensionsTestFixture.cs @@ -0,0 +1,56 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Systems.States; + + [TestFixture] + public class StateDefinitionExtensionsTestFixture + { + [Test] + public void ComputeDoAction_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IStateDefinition)null).ComputeDoAction()); + } + + [Test] + public void ComputeEntryAction_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IStateDefinition)null).ComputeEntryAction()); + } + + [Test] + public void ComputeExitAction_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IStateDefinition)null).ComputeExitAction()); + } + + [Test] + public void ComputeState_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IStateDefinition)null).ComputeState()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/StateSubactionMembershipExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/StateSubactionMembershipExtensionsTestFixture.cs new file mode 100644 index 00000000..5492cc4e --- /dev/null +++ b/SysML2.NET.Tests/Extend/StateSubactionMembershipExtensionsTestFixture.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Systems.States; + + [TestFixture] + public class StateSubactionMembershipExtensionsTestFixture + { + [Test] + public void ComputeAction_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IStateSubactionMembership)null).ComputeAction()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/StateUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/StateUsageExtensionsTestFixture.cs new file mode 100644 index 00000000..fed4d4a2 --- /dev/null +++ b/SysML2.NET.Tests/Extend/StateUsageExtensionsTestFixture.cs @@ -0,0 +1,56 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Systems.States; + + [TestFixture] + public class StateUsageExtensionsTestFixture + { + [Test] + public void ComputeDoAction_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IStateUsage)null).ComputeDoAction()); + } + + [Test] + public void ComputeEntryAction_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IStateUsage)null).ComputeEntryAction()); + } + + [Test] + public void ComputeExitAction_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IStateUsage)null).ComputeExitAction()); + } + + [Test] + public void ComputeStateDefinition_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IStateUsage)null).ComputeStateDefinition()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/StepExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/StepExtensionsTestFixture.cs new file mode 100644 index 00000000..61767af8 --- /dev/null +++ b/SysML2.NET.Tests/Extend/StepExtensionsTestFixture.cs @@ -0,0 +1,44 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Kernel.Behaviors; + + [TestFixture] + public class StepExtensionsTestFixture + { + [Test] + public void ComputeBehavior_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IStep)null).ComputeBehavior()); + } + + [Test] + public void ComputeParameter_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IStep)null).ComputeParameter()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/SubclassificationExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/SubclassificationExtensionsTestFixture.cs new file mode 100644 index 00000000..f9099620 --- /dev/null +++ b/SysML2.NET.Tests/Extend/SubclassificationExtensionsTestFixture.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Core.Classifiers; + + [TestFixture] + public class SubclassificationExtensionsTestFixture + { + [Test] + public void ComputeOwningClassifier_ThrowsNotSupportedException() + { + Assert.Throws(() => ((ISubclassification)null).ComputeOwningClassifier()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/SubjectMembershipExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/SubjectMembershipExtensionsTestFixture.cs new file mode 100644 index 00000000..6d938d0a --- /dev/null +++ b/SysML2.NET.Tests/Extend/SubjectMembershipExtensionsTestFixture.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Systems.Requirements; + + [TestFixture] + public class SubjectMembershipExtensionsTestFixture + { + [Test] + public void ComputeOwnedSubjectParameter_ThrowsNotSupportedException() + { + Assert.Throws(() => ((ISubjectMembership)null).ComputeOwnedSubjectParameter()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/SubsettingExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/SubsettingExtensionsTestFixture.cs new file mode 100644 index 00000000..747b3573 --- /dev/null +++ b/SysML2.NET.Tests/Extend/SubsettingExtensionsTestFixture.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Core.Features; + + [TestFixture] + public class SubsettingExtensionsTestFixture + { + [Test] + public void ComputeOwningFeature_ThrowsNotSupportedException() + { + Assert.Throws(() => ((ISubsetting)null).ComputeOwningFeature()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/TerminateActionUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/TerminateActionUsageExtensionsTestFixture.cs new file mode 100644 index 00000000..b46eefc5 --- /dev/null +++ b/SysML2.NET.Tests/Extend/TerminateActionUsageExtensionsTestFixture.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Systems.Actions; + + [TestFixture] + public class TerminateActionUsageExtensionsTestFixture + { + [Test] + public void ComputeTerminatedOccurrenceArgument_ThrowsNotSupportedException() + { + Assert.Throws(() => ((ITerminateActionUsage)null).ComputeTerminatedOccurrenceArgument()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/TextualRepresentationExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/TextualRepresentationExtensionsTestFixture.cs new file mode 100644 index 00000000..d13b4c1c --- /dev/null +++ b/SysML2.NET.Tests/Extend/TextualRepresentationExtensionsTestFixture.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Root.Annotations; + + [TestFixture] + public class TextualRepresentationExtensionsTestFixture + { + [Test] + public void ComputeRepresentedElement_ThrowsNotSupportedException() + { + Assert.Throws(() => ((ITextualRepresentation)null).ComputeRepresentedElement()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/TransitionFeatureMembershipExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/TransitionFeatureMembershipExtensionsTestFixture.cs new file mode 100644 index 00000000..3fd823bb --- /dev/null +++ b/SysML2.NET.Tests/Extend/TransitionFeatureMembershipExtensionsTestFixture.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Systems.States; + + [TestFixture] + public class TransitionFeatureMembershipExtensionsTestFixture + { + [Test] + public void ComputeTransitionFeature_ThrowsNotSupportedException() + { + Assert.Throws(() => ((ITransitionFeatureMembership)null).ComputeTransitionFeature()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/TransitionUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/TransitionUsageExtensionsTestFixture.cs new file mode 100644 index 00000000..8741e55f --- /dev/null +++ b/SysML2.NET.Tests/Extend/TransitionUsageExtensionsTestFixture.cs @@ -0,0 +1,68 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Systems.States; + + [TestFixture] + public class TransitionUsageExtensionsTestFixture + { + [Test] + public void ComputeEffectAction_ThrowsNotSupportedException() + { + Assert.Throws(() => ((ITransitionUsage)null).ComputeEffectAction()); + } + + [Test] + public void ComputeGuardExpression_ThrowsNotSupportedException() + { + Assert.Throws(() => ((ITransitionUsage)null).ComputeGuardExpression()); + } + + [Test] + public void ComputeSource_ThrowsNotSupportedException() + { + Assert.Throws(() => ((ITransitionUsage)null).ComputeSource()); + } + + [Test] + public void ComputeSuccession_ThrowsNotSupportedException() + { + Assert.Throws(() => ((ITransitionUsage)null).ComputeSuccession()); + } + + [Test] + public void ComputeTarget_ThrowsNotSupportedException() + { + Assert.Throws(() => ((ITransitionUsage)null).ComputeTarget()); + } + + [Test] + public void ComputeTriggerAction_ThrowsNotSupportedException() + { + Assert.Throws(() => ((ITransitionUsage)null).ComputeTriggerAction()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/TypeExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/TypeExtensionsTestFixture.cs new file mode 100644 index 00000000..cf261e4f --- /dev/null +++ b/SysML2.NET.Tests/Extend/TypeExtensionsTestFixture.cs @@ -0,0 +1,164 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Core.Types; + + [TestFixture] + public class TypeExtensionsTestFixture + { + [Test] + public void ComputeDifferencingType_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IType)null).ComputeDifferencingType()); + } + + [Test] + public void ComputeDirectedFeature_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IType)null).ComputeDirectedFeature()); + } + + [Test] + public void ComputeEndFeature_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IType)null).ComputeEndFeature()); + } + + [Test] + public void ComputeFeature_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IType)null).ComputeFeature()); + } + + [Test] + public void ComputeFeatureMembership_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IType)null).ComputeFeatureMembership()); + } + + [Test] + public void ComputeInheritedFeature_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IType)null).ComputeInheritedFeature()); + } + + [Test] + public void ComputeInheritedMembership_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IType)null).ComputeInheritedMembership()); + } + + [Test] + public void ComputeInput_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IType)null).ComputeInput()); + } + + [Test] + public void ComputeIntersectingType_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IType)null).ComputeIntersectingType()); + } + + [Test] + public void ComputeIsConjugated_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IType)null).ComputeIsConjugated()); + } + + [Test] + public void ComputeMultiplicity_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IType)null).ComputeMultiplicity()); + } + + [Test] + public void ComputeOutput_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IType)null).ComputeOutput()); + } + + [Test] + public void ComputeOwnedConjugator_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IType)null).ComputeOwnedConjugator()); + } + + [Test] + public void ComputeOwnedDifferencing_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IType)null).ComputeOwnedDifferencing()); + } + + [Test] + public void ComputeOwnedDisjoining_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IType)null).ComputeOwnedDisjoining()); + } + + [Test] + public void ComputeOwnedEndFeature_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IType)null).ComputeOwnedEndFeature()); + } + + [Test] + public void ComputeOwnedFeature_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IType)null).ComputeOwnedFeature()); + } + + [Test] + public void ComputeOwnedFeatureMembership_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IType)null).ComputeOwnedFeatureMembership()); + } + + [Test] + public void ComputeOwnedIntersecting_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IType)null).ComputeOwnedIntersecting()); + } + + [Test] + public void ComputeOwnedSpecialization_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IType)null).ComputeOwnedSpecialization()); + } + + [Test] + public void ComputeOwnedUnioning_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IType)null).ComputeOwnedUnioning()); + } + + [Test] + public void ComputeUnioningType_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IType)null).ComputeUnioningType()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/TypeFeaturingExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/TypeFeaturingExtensionsTestFixture.cs new file mode 100644 index 00000000..60390fc3 --- /dev/null +++ b/SysML2.NET.Tests/Extend/TypeFeaturingExtensionsTestFixture.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Core.Features; + + [TestFixture] + public class TypeFeaturingExtensionsTestFixture + { + [Test] + public void ComputeOwningFeatureOfType_ThrowsNotSupportedException() + { + Assert.Throws(() => ((ITypeFeaturing)null).ComputeOwningFeatureOfType()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/UnioningExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/UnioningExtensionsTestFixture.cs new file mode 100644 index 00000000..097e0edd --- /dev/null +++ b/SysML2.NET.Tests/Extend/UnioningExtensionsTestFixture.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Core.Types; + + [TestFixture] + public class UnioningExtensionsTestFixture + { + [Test] + public void ComputeTypeUnioned_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IUnioning)null).ComputeTypeUnioned()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/UsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/UsageExtensionsTestFixture.cs new file mode 100644 index 00000000..bab02848 --- /dev/null +++ b/SysML2.NET.Tests/Extend/UsageExtensionsTestFixture.cs @@ -0,0 +1,249 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Systems.DefinitionAndUsage; + + [TestFixture] + public class UsageExtensionsTestFixture + { + [Test] + public void ComputeDefinition_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IUsage)null).ComputeDefinition()); + } + + [Test] + public void ComputeDirectedUsage_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IUsage)null).ComputeDirectedUsage()); + } + + [Test] + public void ComputeIsReference_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IUsage)null).ComputeIsReference()); + } + + [Test] + public void ComputeMayTimeVary_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IUsage)null).ComputeMayTimeVary()); + } + + [Test] + public void ComputeNestedAction_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IUsage)null).ComputeNestedAction()); + } + + [Test] + public void ComputeNestedAllocation_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IUsage)null).ComputeNestedAllocation()); + } + + [Test] + public void ComputeNestedAnalysisCase_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IUsage)null).ComputeNestedAnalysisCase()); + } + + [Test] + public void ComputeNestedAttribute_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IUsage)null).ComputeNestedAttribute()); + } + + [Test] + public void ComputeNestedCalculation_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IUsage)null).ComputeNestedCalculation()); + } + + [Test] + public void ComputeNestedCase_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IUsage)null).ComputeNestedCase()); + } + + [Test] + public void ComputeNestedConcern_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IUsage)null).ComputeNestedConcern()); + } + + [Test] + public void ComputeNestedConnection_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IUsage)null).ComputeNestedConnection()); + } + + [Test] + public void ComputeNestedConstraint_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IUsage)null).ComputeNestedConstraint()); + } + + [Test] + public void ComputeNestedEnumeration_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IUsage)null).ComputeNestedEnumeration()); + } + + [Test] + public void ComputeNestedFlow_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IUsage)null).ComputeNestedFlow()); + } + + [Test] + public void ComputeNestedInterface_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IUsage)null).ComputeNestedInterface()); + } + + [Test] + public void ComputeNestedItem_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IUsage)null).ComputeNestedItem()); + } + + [Test] + public void ComputeNestedMetadata_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IUsage)null).ComputeNestedMetadata()); + } + + [Test] + public void ComputeNestedOccurrence_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IUsage)null).ComputeNestedOccurrence()); + } + + [Test] + public void ComputeNestedPart_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IUsage)null).ComputeNestedPart()); + } + + [Test] + public void ComputeNestedPort_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IUsage)null).ComputeNestedPort()); + } + + [Test] + public void ComputeNestedReference_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IUsage)null).ComputeNestedReference()); + } + + [Test] + public void ComputeNestedRendering_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IUsage)null).ComputeNestedRendering()); + } + + [Test] + public void ComputeNestedRequirement_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IUsage)null).ComputeNestedRequirement()); + } + + [Test] + public void ComputeNestedState_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IUsage)null).ComputeNestedState()); + } + + [Test] + public void ComputeNestedTransition_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IUsage)null).ComputeNestedTransition()); + } + + [Test] + public void ComputeNestedUsage_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IUsage)null).ComputeNestedUsage()); + } + + [Test] + public void ComputeNestedUseCase_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IUsage)null).ComputeNestedUseCase()); + } + + [Test] + public void ComputeNestedVerificationCase_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IUsage)null).ComputeNestedVerificationCase()); + } + + [Test] + public void ComputeNestedView_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IUsage)null).ComputeNestedView()); + } + + [Test] + public void ComputeNestedViewpoint_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IUsage)null).ComputeNestedViewpoint()); + } + + [Test] + public void ComputeOwningDefinition_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IUsage)null).ComputeOwningDefinition()); + } + + [Test] + public void ComputeOwningUsage_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IUsage)null).ComputeOwningUsage()); + } + + [Test] + public void ComputeUsage_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IUsage)null).ComputeUsage()); + } + + [Test] + public void ComputeVariant_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IUsage)null).ComputeVariant()); + } + + [Test] + public void ComputeVariantMembership_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IUsage)null).ComputeVariantMembership()); + } + } +} + diff --git a/SysML2.NET.Tests/Extend/UseCaseDefinitionExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/UseCaseDefinitionExtensionsTestFixture.cs new file mode 100644 index 00000000..c57561d1 --- /dev/null +++ b/SysML2.NET.Tests/Extend/UseCaseDefinitionExtensionsTestFixture.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Systems.UseCases; + + [TestFixture] + public class UseCaseDefinitionExtensionsTestFixture + { + [Test] + public void ComputeIncludedUseCase_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IUseCaseDefinition)null).ComputeIncludedUseCase()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/UseCaseUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/UseCaseUsageExtensionsTestFixture.cs new file mode 100644 index 00000000..7a99606c --- /dev/null +++ b/SysML2.NET.Tests/Extend/UseCaseUsageExtensionsTestFixture.cs @@ -0,0 +1,43 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Systems.UseCases; + + [TestFixture] + public class UseCaseUsageExtensionsTestFixture + { + [Test] + public void ComputeIncludedUseCase_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IUseCaseUsage)null).ComputeIncludedUseCase()); + } + [Test] + public void ComputeUseCaseDefinition_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IUseCaseUsage)null).ComputeUseCaseDefinition()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/VariantMembershipExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/VariantMembershipExtensionsTestFixture.cs new file mode 100644 index 00000000..36b92f68 --- /dev/null +++ b/SysML2.NET.Tests/Extend/VariantMembershipExtensionsTestFixture.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Systems.DefinitionAndUsage; + + [TestFixture] + public class VariantMembershipExtensionsTestFixture + { + [Test] + public void ComputeOwnedVariantUsage_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IVariantMembership)null).ComputeOwnedVariantUsage()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/VerificationCaseDefinitionExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/VerificationCaseDefinitionExtensionsTestFixture.cs new file mode 100644 index 00000000..bae16870 --- /dev/null +++ b/SysML2.NET.Tests/Extend/VerificationCaseDefinitionExtensionsTestFixture.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Systems.VerificationCases; + + [TestFixture] + public class VerificationCaseDefinitionExtensionsTestFixture + { + [Test] + public void ComputeVerifiedRequirement_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IVerificationCaseDefinition)null).ComputeVerifiedRequirement()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/VerificationCaseUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/VerificationCaseUsageExtensionsTestFixture.cs new file mode 100644 index 00000000..2531a6ba --- /dev/null +++ b/SysML2.NET.Tests/Extend/VerificationCaseUsageExtensionsTestFixture.cs @@ -0,0 +1,43 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Systems.VerificationCases; + + [TestFixture] + public class VerificationCaseUsageExtensionsTestFixture + { + [Test] + public void ComputeVerificationCaseDefinition_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IVerificationCaseUsage)null).ComputeVerificationCaseDefinition()); + } + [Test] + public void ComputeVerifiedRequirement_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IVerificationCaseUsage)null).ComputeVerifiedRequirement()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/ViewDefinitionExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ViewDefinitionExtensionsTestFixture.cs new file mode 100644 index 00000000..9cf2742b --- /dev/null +++ b/SysML2.NET.Tests/Extend/ViewDefinitionExtensionsTestFixture.cs @@ -0,0 +1,56 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Systems.Views; + + [TestFixture] + public class ViewDefinitionExtensionsTestFixture + { + [Test] + public void ComputeSatisfiedViewpoint_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IViewDefinition)null).ComputeSatisfiedViewpoint()); + } + + [Test] + public void ComputeView_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IViewDefinition)null).ComputeView()); + } + + [Test] + public void ComputeViewCondition_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IViewDefinition)null).ComputeViewCondition()); + } + + [Test] + public void ComputeViewRendering_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IViewDefinition)null).ComputeViewRendering()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/ViewRenderingMembershipExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ViewRenderingMembershipExtensionsTestFixture.cs new file mode 100644 index 00000000..56b1005e --- /dev/null +++ b/SysML2.NET.Tests/Extend/ViewRenderingMembershipExtensionsTestFixture.cs @@ -0,0 +1,44 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Systems.Views; + + [TestFixture] + public class ViewRenderingMembershipExtensionsTestFixture + { + [Test] + public void ComputeOwnedRendering_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IViewRenderingMembership)null).ComputeOwnedRendering()); + } + + [Test] + public void ComputeReferencedRendering_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IViewRenderingMembership)null).ComputeReferencedRendering()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/ViewUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ViewUsageExtensionsTestFixture.cs new file mode 100644 index 00000000..06a931eb --- /dev/null +++ b/SysML2.NET.Tests/Extend/ViewUsageExtensionsTestFixture.cs @@ -0,0 +1,58 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Systems.Views; + + [TestFixture] + public class ViewUsageExtensionsTestFixture + { + [Test] + public void ComputeExposedElement_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IViewUsage)null).ComputeExposedElement()); + } + [Test] + public void ComputeSatisfiedViewpoint_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IViewUsage)null).ComputeSatisfiedViewpoint()); + } + [Test] + public void ComputeViewCondition_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IViewUsage)null).ComputeViewCondition()); + } + [Test] + public void ComputeViewDefinition_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IViewUsage)null).ComputeViewDefinition()); + } + [Test] + public void ComputeViewRendering_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IViewUsage)null).ComputeViewRendering()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/ViewpointDefinitionExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ViewpointDefinitionExtensionsTestFixture.cs new file mode 100644 index 00000000..8fd95c48 --- /dev/null +++ b/SysML2.NET.Tests/Extend/ViewpointDefinitionExtensionsTestFixture.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Systems.Views; + + [TestFixture] + public class ViewpointDefinitionExtensionsTestFixture + { + [Test] + public void ComputeViewpointStakeholder_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IViewpointDefinition)null).ComputeViewpointStakeholder()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/ViewpointUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ViewpointUsageExtensionsTestFixture.cs new file mode 100644 index 00000000..12e08056 --- /dev/null +++ b/SysML2.NET.Tests/Extend/ViewpointUsageExtensionsTestFixture.cs @@ -0,0 +1,44 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Systems.Views; + + [TestFixture] + public class ViewpointUsageExtensionsTestFixture + { + [Test] + public void ComputeViewpointDefinition_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IViewpointUsage)null).ComputeViewpointDefinition()); + } + + [Test] + public void ComputeViewpointStakeholder_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IViewpointUsage)null).ComputeViewpointStakeholder()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/WhileLoopActionUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/WhileLoopActionUsageExtensionsTestFixture.cs new file mode 100644 index 00000000..e715fb38 --- /dev/null +++ b/SysML2.NET.Tests/Extend/WhileLoopActionUsageExtensionsTestFixture.cs @@ -0,0 +1,44 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 2022-2026 Starion Group S.A. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Tests.Extend +{ + using System; + + using NUnit.Framework; + + using SysML2.NET.Core.POCO.Systems.Actions; + + [TestFixture] + public class WhileLoopActionUsageExtensionsTestFixture + { + [Test] + public void ComputeUntilArgument_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IWhileLoopActionUsage)null).ComputeUntilArgument()); + } + + [Test] + public void ComputeWhileArgument_ThrowsNotSupportedException() + { + Assert.Throws(() => ((IWhileLoopActionUsage)null).ComputeWhileArgument()); + } + } +} diff --git a/SysML2.NET/SysML2.NET.csproj b/SysML2.NET/SysML2.NET.csproj index 15f1e48d..39f40a50 100644 --- a/SysML2.NET/SysML2.NET.csproj +++ b/SysML2.NET/SysML2.NET.csproj @@ -46,4 +46,8 @@ + + + + \ No newline at end of file From 944ec2ca51e69d3adb8169e46c084bd58dba8363 Mon Sep 17 00:00:00 2001 From: samatstarion Date: Thu, 19 Feb 2026 15:53:41 +0100 Subject: [PATCH 2/2] [Refactor ] to use Assert.That --- .../AcceptActionUsageExtensionsTestFixture.cs | 6 +- .../ActionDefinitionExtensionsTestFixture.cs | 2 +- .../ActionUsageExtensionsTestFixture.cs | 2 +- .../ActorMembershipExtensionsTestFixture.cs | 2 +- ...locationDefinitionExtensionsTestFixture.cs | 2 +- .../AllocationUsageExtensionsTestFixture.cs | 2 +- ...ysisCaseDefinitionExtensionsTestFixture.cs | 2 +- .../AnalysisCaseUsageExtensionsTestFixture.cs | 4 +- .../AnnotatingElementExtensionsTestFixture.cs | 8 +-- .../Extend/AnnotationExtensionsTestFixture.cs | 8 +-- ...ertConstraintUsageExtensionsTestFixture.cs | 2 +- ...ignmentActionUsageExtensionsTestFixture.cs | 6 +- .../AssociationExtensionsTestFixture.cs | 8 +-- .../AttributeUsageExtensionsTestFixture.cs | 4 +- .../Extend/BehaviorExtensionsTestFixture.cs | 4 +- .../BooleanExpressionExtensionsTestFixture.cs | 2 +- ...culationDefinitionExtensionsTestFixture.cs | 2 +- .../CalculationUsageExtensionsTestFixture.cs | 2 +- .../CaseDefinitionExtensionsTestFixture.cs | 6 +- .../Extend/CaseUsageExtensionsTestFixture.cs | 8 +-- .../Extend/ClassifierExtensionsTestFixture.cs | 2 +- .../ConcernUsageExtensionsTestFixture.cs | 2 +- ...atedPortDefinitionExtensionsTestFixture.cs | 4 +- ...njugatedPortTypingExtensionsTestFixture.cs | 2 +- .../ConjugationExtensionsTestFixture.cs | 2 +- ...nnectionDefinitionExtensionsTestFixture.cs | 2 +- .../ConnectionUsageExtensionsTestFixture.cs | 2 +- .../Extend/ConnectorExtensionsTestFixture.cs | 12 ++-- .../ConstraintUsageExtensionsTestFixture.cs | 2 +- .../CrossSubsettingExtensionsTestFixture.cs | 2 +- .../Extend/DefinitionExtensionsTestFixture.cs | 62 ++++++++-------- .../DifferencingExtensionsTestFixture.cs | 2 +- .../Extend/DisjoiningExtensionsTestFixture.cs | 2 +- .../DocumentationExtensionsTestFixture.cs | 2 +- .../Extend/ElementExtensionsTestFixture.cs | 22 +++--- ...ntFilterMembershipExtensionsTestFixture.cs | 2 +- ...dFeatureMembershipExtensionsTestFixture.cs | 2 +- ...merationDefinitionExtensionsTestFixture.cs | 2 +- .../EnumerationUsageExtensionsTestFixture.cs | 2 +- ...entOccurrenceUsageExtensionsTestFixture.cs | 4 +- .../ExhibitStateUsageExtensionsTestFixture.cs | 2 +- .../Extend/ExpressionExtensionsTestFixture.cs | 6 +- ...ureChainExpressionExtensionsTestFixture.cs | 2 +- .../FeatureChainingExtensionsTestFixture.cs | 2 +- .../Extend/FeatureExtensionsTestFixture.cs | 32 ++++----- .../FeatureInvertingExtensionsTestFixture.cs | 2 +- .../FeatureMembershipExtensionsTestFixture.cs | 4 +- ...eferenceExpressionExtensionsTestFixture.cs | 2 +- .../FeatureTypingExtensionsTestFixture.cs | 2 +- .../FeatureValueExtensionsTestFixture.cs | 4 +- .../FlowDefinitionExtensionsTestFixture.cs | 2 +- .../Extend/FlowExtensionsTestFixture.cs | 12 ++-- .../Extend/FlowUsageExtensionsTestFixture.cs | 2 +- ...ForLoopActionUsageExtensionsTestFixture.cs | 4 +- ...dConcernMembershipExtensionsTestFixture.cs | 4 +- .../Extend/FunctionExtensionsTestFixture.cs | 6 +- .../IfActionUsageExtensionsTestFixture.cs | 6 +- .../Extend/ImportExtensionsTestFixture.cs | 4 +- ...ncludeUseCaseUsageExtensionsTestFixture.cs | 2 +- ...ntiationExpressionExtensionsTestFixture.cs | 4 +- ...nterfaceDefinitionExtensionsTestFixture.cs | 2 +- .../InterfaceUsageExtensionsTestFixture.cs | 2 +- .../IntersectingExtensionsTestFixture.cs | 2 +- .../Extend/ItemUsageExtensionsTestFixture.cs | 2 +- .../LoopActionUsageExtensionsTestFixture.cs | 2 +- .../Extend/MembershipExtensionsTestFixture.cs | 4 +- ...taAccessExpressionExtensionsTestFixture.cs | 2 +- .../MetadataFeatureExtensionsTestFixture.cs | 2 +- .../MetadataUsageExtensionsTestFixture.cs | 2 +- .../MultiplicityRangeExtensionsTestFixture.cs | 6 +- ...bjectiveMembershipExtensionsTestFixture.cs | 2 +- .../OccurrenceUsageExtensionsTestFixture.cs | 4 +- .../OwningMembershipExtensionsTestFixture.cs | 8 +-- .../Extend/PackageExtensionsTestFixture.cs | 2 +- ...arameterMembershipExtensionsTestFixture.cs | 2 +- .../Extend/PartUsageExtensionsTestFixture.cs | 2 +- ...PerformActionUsageExtensionsTestFixture.cs | 2 +- .../PortConjugationExtensionsTestFixture.cs | 2 +- .../PortDefinitionExtensionsTestFixture.cs | 2 +- .../Extend/PortUsageExtensionsTestFixture.cs | 2 +- ...eferenceSubsettingExtensionsTestFixture.cs | 2 +- .../ReferenceUsageExtensionsTestFixture.cs | 2 +- .../RelationshipExtensionsTestFixture.cs | 2 +- ...enderingDefinitionExtensionsTestFixture.cs | 2 +- .../RenderingUsageExtensionsTestFixture.cs | 2 +- ...nstraintMembershipExtensionsTestFixture.cs | 4 +- ...uirementDefinitionExtensionsTestFixture.cs | 14 ++-- .../RequirementUsageExtensionsTestFixture.cs | 16 ++--- ...ficationMembershipExtensionsTestFixture.cs | 4 +- ...pressionMembershipExtensionsTestFixture.cs | 2 +- ...fyRequirementUsageExtensionsTestFixture.cs | 4 +- .../SendActionUsageExtensionsTestFixture.cs | 6 +- .../SpecializationExtensionsTestFixture.cs | 2 +- ...keholderMembershipExtensionsTestFixture.cs | 2 +- .../StateDefinitionExtensionsTestFixture.cs | 8 +-- ...ubactionMembershipExtensionsTestFixture.cs | 2 +- .../Extend/StateUsageExtensionsTestFixture.cs | 8 +-- .../Extend/StepExtensionsTestFixture.cs | 4 +- .../SubclassificationExtensionsTestFixture.cs | 2 +- .../SubjectMembershipExtensionsTestFixture.cs | 2 +- .../Extend/SubsettingExtensionsTestFixture.cs | 2 +- ...rminateActionUsageExtensionsTestFixture.cs | 2 +- ...tualRepresentationExtensionsTestFixture.cs | 2 +- ...nFeatureMembershipExtensionsTestFixture.cs | 2 +- .../TransitionUsageExtensionsTestFixture.cs | 12 ++-- .../Extend/TypeExtensionsTestFixture.cs | 44 ++++++------ .../TypeFeaturingExtensionsTestFixture.cs | 2 +- .../Extend/UnioningExtensionsTestFixture.cs | 2 +- .../Extend/UsageExtensionsTestFixture.cs | 72 +++++++++---------- .../UseCaseDefinitionExtensionsTestFixture.cs | 2 +- .../UseCaseUsageExtensionsTestFixture.cs | 4 +- .../VariantMembershipExtensionsTestFixture.cs | 2 +- ...tionCaseDefinitionExtensionsTestFixture.cs | 2 +- ...ificationCaseUsageExtensionsTestFixture.cs | 4 +- .../ViewDefinitionExtensionsTestFixture.cs | 8 +-- ...enderingMembershipExtensionsTestFixture.cs | 4 +- .../Extend/ViewUsageExtensionsTestFixture.cs | 10 +-- ...iewpointDefinitionExtensionsTestFixture.cs | 2 +- .../ViewpointUsageExtensionsTestFixture.cs | 4 +- ...ileLoopActionUsageExtensionsTestFixture.cs | 4 +- 120 files changed, 325 insertions(+), 325 deletions(-) diff --git a/SysML2.NET.Tests/Extend/AcceptActionUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/AcceptActionUsageExtensionsTestFixture.cs index 54896dc4..58028a42 100644 --- a/SysML2.NET.Tests/Extend/AcceptActionUsageExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/AcceptActionUsageExtensionsTestFixture.cs @@ -32,19 +32,19 @@ public class AcceptActionUsageExtensionsTestFixture [Test] public void ComputePayloadArgument_ThrowsNotSupportedException() { - Assert.Throws(() => ((IAcceptActionUsage)null).ComputePayloadArgument()); + Assert.That(() => ((IAcceptActionUsage)null).ComputePayloadArgument(), Throws.TypeOf()); } [Test] public void ComputePayloadParameter_ThrowsNotSupportedException() { - Assert.Throws(() => ((IAcceptActionUsage)null).ComputePayloadParameter()); + Assert.That(() => ((IAcceptActionUsage)null).ComputePayloadParameter(), Throws.TypeOf()); } [Test] public void ComputeReceiverArgument_ThrowsNotSupportedException() { - Assert.Throws(() => ((IAcceptActionUsage)null).ComputeReceiverArgument()); + Assert.That(() => ((IAcceptActionUsage)null).ComputeReceiverArgument(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/ActionDefinitionExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ActionDefinitionExtensionsTestFixture.cs index e9b23b70..d70869fc 100644 --- a/SysML2.NET.Tests/Extend/ActionDefinitionExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/ActionDefinitionExtensionsTestFixture.cs @@ -32,7 +32,7 @@ public class ActionDefinitionExtensionsTestFixture [Test] public void ComputeAction_ThrowsNotSupportedException() { - Assert.Throws(() => ((IActionDefinition)null).ComputeAction()); + Assert.That(() => ((IActionDefinition)null).ComputeAction(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/ActionUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ActionUsageExtensionsTestFixture.cs index 0511dd96..5b9c3344 100644 --- a/SysML2.NET.Tests/Extend/ActionUsageExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/ActionUsageExtensionsTestFixture.cs @@ -32,7 +32,7 @@ public class ActionUsageExtensionsTestFixture [Test] public void ComputeActionDefinition_ThrowsNotSupportedException() { - Assert.Throws(() => ((IActionUsage)null).ComputeActionDefinition()); + Assert.That(() => ((IActionUsage)null).ComputeActionDefinition(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/ActorMembershipExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ActorMembershipExtensionsTestFixture.cs index 17d6067f..2ad5978d 100644 --- a/SysML2.NET.Tests/Extend/ActorMembershipExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/ActorMembershipExtensionsTestFixture.cs @@ -32,7 +32,7 @@ public class ActorMembershipExtensionsTestFixture [Test] public void ComputeOwnedActorParameter_ThrowsNotSupportedException() { - Assert.Throws(() => ((IActorMembership)null).ComputeOwnedActorParameter()); + Assert.That(() => ((IActorMembership)null).ComputeOwnedActorParameter(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/AllocationDefinitionExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/AllocationDefinitionExtensionsTestFixture.cs index c36804c0..cb2c0708 100644 --- a/SysML2.NET.Tests/Extend/AllocationDefinitionExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/AllocationDefinitionExtensionsTestFixture.cs @@ -32,7 +32,7 @@ public class AllocationDefinitionExtensionsTestFixture [Test] public void ComputeAllocation_ThrowsNotSupportedException() { - Assert.Throws(() => ((IAllocationDefinition)null).ComputeAllocation()); + Assert.That(() => ((IAllocationDefinition)null).ComputeAllocation(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/AllocationUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/AllocationUsageExtensionsTestFixture.cs index 0fbc2e93..4f0dee5e 100644 --- a/SysML2.NET.Tests/Extend/AllocationUsageExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/AllocationUsageExtensionsTestFixture.cs @@ -32,7 +32,7 @@ public class AllocationUsageExtensionsTestFixture [Test] public void ComputeAllocationDefinition_ThrowsNotSupportedException() { - Assert.Throws(() => ((IAllocationUsage)null).ComputeAllocationDefinition()); + Assert.That(() => ((IAllocationUsage)null).ComputeAllocationDefinition(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/AnalysisCaseDefinitionExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/AnalysisCaseDefinitionExtensionsTestFixture.cs index f3e695f3..9d76d1b7 100644 --- a/SysML2.NET.Tests/Extend/AnalysisCaseDefinitionExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/AnalysisCaseDefinitionExtensionsTestFixture.cs @@ -32,7 +32,7 @@ public class AnalysisCaseDefinitionExtensionsTestFixture [Test] public void ComputeResultExpression_ThrowsNotSupportedException() { - Assert.Throws(() => ((IAnalysisCaseDefinition)null).ComputeResultExpression()); + Assert.That(() => ((IAnalysisCaseDefinition)null).ComputeResultExpression(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/AnalysisCaseUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/AnalysisCaseUsageExtensionsTestFixture.cs index 296d0351..0bdcbd9d 100644 --- a/SysML2.NET.Tests/Extend/AnalysisCaseUsageExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/AnalysisCaseUsageExtensionsTestFixture.cs @@ -32,13 +32,13 @@ public class AnalysisCaseUsageExtensionsTestFixture [Test] public void ComputeAnalysisCaseDefinition_ThrowsNotSupportedException() { - Assert.Throws(() => ((IAnalysisCaseUsage)null).ComputeAnalysisCaseDefinition()); + Assert.That(() => ((IAnalysisCaseUsage)null).ComputeAnalysisCaseDefinition(), Throws.TypeOf()); } [Test] public void ComputeResultExpression_ThrowsNotSupportedException() { - Assert.Throws(() => ((IAnalysisCaseUsage)null).ComputeResultExpression()); + Assert.That(() => ((IAnalysisCaseUsage)null).ComputeResultExpression(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/AnnotatingElementExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/AnnotatingElementExtensionsTestFixture.cs index d554db0b..86014a44 100644 --- a/SysML2.NET.Tests/Extend/AnnotatingElementExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/AnnotatingElementExtensionsTestFixture.cs @@ -32,25 +32,25 @@ public class AnnotatingElementExtensionsTestFixture [Test] public void ComputeAnnotatedElement_ThrowsNotSupportedException() { - Assert.Throws(() => ((IAnnotatingElement)null).ComputeAnnotatedElement()); + Assert.That(() => ((IAnnotatingElement)null).ComputeAnnotatedElement(), Throws.TypeOf()); } [Test] public void ComputeAnnotation_ThrowsNotSupportedException() { - Assert.Throws(() => ((IAnnotatingElement)null).ComputeAnnotation()); + Assert.That(() => ((IAnnotatingElement)null).ComputeAnnotation(), Throws.TypeOf()); } [Test] public void ComputeOwnedAnnotatingRelationship_ThrowsNotSupportedException() { - Assert.Throws(() => ((IAnnotatingElement)null).ComputeOwnedAnnotatingRelationship()); + Assert.That(() => ((IAnnotatingElement)null).ComputeOwnedAnnotatingRelationship(), Throws.TypeOf()); } [Test] public void ComputeOwningAnnotatingRelationship_ThrowsNotSupportedException() { - Assert.Throws(() => ((IAnnotatingElement)null).ComputeOwningAnnotatingRelationship()); + Assert.That(() => ((IAnnotatingElement)null).ComputeOwningAnnotatingRelationship(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/AnnotationExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/AnnotationExtensionsTestFixture.cs index b6bba233..fdbf68e5 100644 --- a/SysML2.NET.Tests/Extend/AnnotationExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/AnnotationExtensionsTestFixture.cs @@ -32,25 +32,25 @@ public class AnnotationExtensionsTestFixture [Test] public void ComputeAnnotatingElement_ThrowsNotSupportedException() { - Assert.Throws(() => ((IAnnotation)null).ComputeAnnotatingElement()); + Assert.That(() => ((IAnnotation)null).ComputeAnnotatingElement(), Throws.TypeOf()); } [Test] public void ComputeOwnedAnnotatingElement_ThrowsNotSupportedException() { - Assert.Throws(() => ((IAnnotation)null).ComputeOwnedAnnotatingElement()); + Assert.That(() => ((IAnnotation)null).ComputeOwnedAnnotatingElement(), Throws.TypeOf()); } [Test] public void ComputeOwningAnnotatedElement_ThrowsNotSupportedException() { - Assert.Throws(() => ((IAnnotation)null).ComputeOwningAnnotatedElement()); + Assert.That(() => ((IAnnotation)null).ComputeOwningAnnotatedElement(), Throws.TypeOf()); } [Test] public void ComputeOwningAnnotatingElement_ThrowsNotSupportedException() { - Assert.Throws(() => ((IAnnotation)null).ComputeOwningAnnotatingElement()); + Assert.That(() => ((IAnnotation)null).ComputeOwningAnnotatingElement(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/AssertConstraintUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/AssertConstraintUsageExtensionsTestFixture.cs index 8e26c6cc..3c4410d5 100644 --- a/SysML2.NET.Tests/Extend/AssertConstraintUsageExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/AssertConstraintUsageExtensionsTestFixture.cs @@ -32,7 +32,7 @@ public class AssertConstraintUsageExtensionsTestFixture [Test] public void ComputeAssertedConstraint_ThrowsNotSupportedException() { - Assert.Throws(() => ((IAssertConstraintUsage)null).ComputeAssertedConstraint()); + Assert.That(() => ((IAssertConstraintUsage)null).ComputeAssertedConstraint(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/AssignmentActionUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/AssignmentActionUsageExtensionsTestFixture.cs index 898659d9..d150c046 100644 --- a/SysML2.NET.Tests/Extend/AssignmentActionUsageExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/AssignmentActionUsageExtensionsTestFixture.cs @@ -32,19 +32,19 @@ public class AssignmentActionUsageExtensionsTestFixture [Test] public void ComputeReferent_ThrowsNotSupportedException() { - Assert.Throws(() => ((IAssignmentActionUsage)null).ComputeReferent()); + Assert.That(() => ((IAssignmentActionUsage)null).ComputeReferent(), Throws.TypeOf()); } [Test] public void ComputeTargetArgument_ThrowsNotSupportedException() { - Assert.Throws(() => ((IAssignmentActionUsage)null).ComputeTargetArgument()); + Assert.That(() => ((IAssignmentActionUsage)null).ComputeTargetArgument(), Throws.TypeOf()); } [Test] public void ComputeValueExpression_ThrowsNotSupportedException() { - Assert.Throws(() => ((IAssignmentActionUsage)null).ComputeValueExpression()); + Assert.That(() => ((IAssignmentActionUsage)null).ComputeValueExpression(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/AssociationExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/AssociationExtensionsTestFixture.cs index 9a7f4bc6..c52f4bb0 100644 --- a/SysML2.NET.Tests/Extend/AssociationExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/AssociationExtensionsTestFixture.cs @@ -32,25 +32,25 @@ public class AssociationExtensionsTestFixture [Test] public void ComputeAssociationEnd_ThrowsNotSupportedException() { - Assert.Throws(() => ((IAssociation)null).ComputeAssociationEnd()); + Assert.That(() => ((IAssociation)null).ComputeAssociationEnd(), Throws.TypeOf()); } [Test] public void ComputeRelatedType_ThrowsNotSupportedException() { - Assert.Throws(() => ((IAssociation)null).ComputeRelatedType()); + Assert.That(() => ((IAssociation)null).ComputeRelatedType(), Throws.TypeOf()); } [Test] public void ComputeSourceType_ThrowsNotSupportedException() { - Assert.Throws(() => ((IAssociation)null).ComputeSourceType()); + Assert.That(() => ((IAssociation)null).ComputeSourceType(), Throws.TypeOf()); } [Test] public void ComputeTargetType_ThrowsNotSupportedException() { - Assert.Throws(() => ((IAssociation)null).ComputeTargetType()); + Assert.That(() => ((IAssociation)null).ComputeTargetType(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/AttributeUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/AttributeUsageExtensionsTestFixture.cs index a5a50db5..c226fe18 100644 --- a/SysML2.NET.Tests/Extend/AttributeUsageExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/AttributeUsageExtensionsTestFixture.cs @@ -32,13 +32,13 @@ public class AttributeUsageExtensionsTestFixture [Test] public void ComputeAttributeDefinition_ThrowsNotSupportedException() { - Assert.Throws(() => ((IAttributeUsage)null).ComputeAttributeDefinition()); + Assert.That(() => ((IAttributeUsage)null).ComputeAttributeDefinition(), Throws.TypeOf()); } [Test] public void ComputeIsReference_ThrowsNotSupportedException() { - Assert.Throws(() => ((IAttributeUsage)null).ComputeIsReference()); + Assert.That(() => ((IAttributeUsage)null).ComputeIsReference(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/BehaviorExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/BehaviorExtensionsTestFixture.cs index 02ac7670..b95e2d79 100644 --- a/SysML2.NET.Tests/Extend/BehaviorExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/BehaviorExtensionsTestFixture.cs @@ -32,13 +32,13 @@ public class BehaviorExtensionsTestFixture [Test] public void ComputeParameter_ThrowsNotSupportedException() { - Assert.Throws(() => ((IBehavior)null).ComputeParameter()); + Assert.That(() => ((IBehavior)null).ComputeParameter(), Throws.TypeOf()); } [Test] public void ComputeStep_ThrowsNotSupportedException() { - Assert.Throws(() => ((IBehavior)null).ComputeStep()); + Assert.That(() => ((IBehavior)null).ComputeStep(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/BooleanExpressionExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/BooleanExpressionExtensionsTestFixture.cs index 699ca3ec..c1be9b35 100644 --- a/SysML2.NET.Tests/Extend/BooleanExpressionExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/BooleanExpressionExtensionsTestFixture.cs @@ -32,7 +32,7 @@ public class BooleanExpressionExtensionsTestFixture [Test] public void ComputePredicate_ThrowsNotSupportedException() { - Assert.Throws(() => ((IBooleanExpression)null).ComputePredicate()); + Assert.That(() => ((IBooleanExpression)null).ComputePredicate(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/CalculationDefinitionExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/CalculationDefinitionExtensionsTestFixture.cs index f574cf02..0c08b400 100644 --- a/SysML2.NET.Tests/Extend/CalculationDefinitionExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/CalculationDefinitionExtensionsTestFixture.cs @@ -32,7 +32,7 @@ public class CalculationDefinitionExtensionsTestFixture [Test] public void ComputeCalculation_ThrowsNotSupportedException() { - Assert.Throws(() => ((ICalculationDefinition)null).ComputeCalculation()); + Assert.That(() => ((ICalculationDefinition)null).ComputeCalculation(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/CalculationUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/CalculationUsageExtensionsTestFixture.cs index 5767e8a8..11a08521 100644 --- a/SysML2.NET.Tests/Extend/CalculationUsageExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/CalculationUsageExtensionsTestFixture.cs @@ -32,7 +32,7 @@ public class CalculationUsageExtensionsTestFixture [Test] public void ComputeCalculationDefinition_ThrowsNotSupportedException() { - Assert.Throws(() => ((ICalculationUsage)null).ComputeCalculationDefinition()); + Assert.That(() => ((ICalculationUsage)null).ComputeCalculationDefinition(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/CaseDefinitionExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/CaseDefinitionExtensionsTestFixture.cs index a9bedfd4..0e053d80 100644 --- a/SysML2.NET.Tests/Extend/CaseDefinitionExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/CaseDefinitionExtensionsTestFixture.cs @@ -32,19 +32,19 @@ public class CaseDefinitionExtensionsTestFixture [Test] public void ComputeActorParameter_ThrowsNotSupportedException() { - Assert.Throws(() => ((ICaseDefinition)null).ComputeActorParameter()); + Assert.That(() => ((ICaseDefinition)null).ComputeActorParameter(), Throws.TypeOf()); } [Test] public void ComputeObjectiveRequirement_ThrowsNotSupportedException() { - Assert.Throws(() => ((ICaseDefinition)null).ComputeObjectiveRequirement()); + Assert.That(() => ((ICaseDefinition)null).ComputeObjectiveRequirement(), Throws.TypeOf()); } [Test] public void ComputeSubjectParameter_ThrowsNotSupportedException() { - Assert.Throws(() => ((ICaseDefinition)null).ComputeSubjectParameter()); + Assert.That(() => ((ICaseDefinition)null).ComputeSubjectParameter(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/CaseUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/CaseUsageExtensionsTestFixture.cs index d09a2ffe..a892228a 100644 --- a/SysML2.NET.Tests/Extend/CaseUsageExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/CaseUsageExtensionsTestFixture.cs @@ -32,25 +32,25 @@ public class CaseUsageExtensionsTestFixture [Test] public void ComputeActorParameter_ThrowsNotSupportedException() { - Assert.Throws(() => ((ICaseUsage)null).ComputeActorParameter()); + Assert.That(() => ((ICaseUsage)null).ComputeActorParameter(), Throws.TypeOf()); } [Test] public void ComputeCaseDefinition_ThrowsNotSupportedException() { - Assert.Throws(() => ((ICaseUsage)null).ComputeCaseDefinition()); + Assert.That(() => ((ICaseUsage)null).ComputeCaseDefinition(), Throws.TypeOf()); } [Test] public void ComputeObjectiveRequirement_ThrowsNotSupportedException() { - Assert.Throws(() => ((ICaseUsage)null).ComputeObjectiveRequirement()); + Assert.That(() => ((ICaseUsage)null).ComputeObjectiveRequirement(), Throws.TypeOf()); } [Test] public void ComputeSubjectParameter_ThrowsNotSupportedException() { - Assert.Throws(() => ((ICaseUsage)null).ComputeSubjectParameter()); + Assert.That(() => ((ICaseUsage)null).ComputeSubjectParameter(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/ClassifierExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ClassifierExtensionsTestFixture.cs index 4695a989..e77764c6 100644 --- a/SysML2.NET.Tests/Extend/ClassifierExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/ClassifierExtensionsTestFixture.cs @@ -32,7 +32,7 @@ public class ClassifierExtensionsTestFixture [Test] public void ComputeOwnedSubclassification_ThrowsNotSupportedException() { - Assert.Throws(() => ((IClassifier)null).ComputeOwnedSubclassification()); + Assert.That(() => ((IClassifier)null).ComputeOwnedSubclassification(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/ConcernUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ConcernUsageExtensionsTestFixture.cs index 1aa0ff0b..9607b51b 100644 --- a/SysML2.NET.Tests/Extend/ConcernUsageExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/ConcernUsageExtensionsTestFixture.cs @@ -32,7 +32,7 @@ public class ConcernUsageExtensionsTestFixture [Test] public void ComputeConcernDefinition_ThrowsNotSupportedException() { - Assert.Throws(() => ((IConcernUsage)null).ComputeConcernDefinition()); + Assert.That(() => ((IConcernUsage)null).ComputeConcernDefinition(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/ConjugatedPortDefinitionExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ConjugatedPortDefinitionExtensionsTestFixture.cs index 99b4285c..67bfec2e 100644 --- a/SysML2.NET.Tests/Extend/ConjugatedPortDefinitionExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/ConjugatedPortDefinitionExtensionsTestFixture.cs @@ -32,13 +32,13 @@ public class ConjugatedPortDefinitionExtensionsTestFixture [Test] public void ComputeOriginalPortDefinition_ThrowsNotSupportedException() { - Assert.Throws(() => ((IConjugatedPortDefinition)null).ComputeOriginalPortDefinition()); + Assert.That(() => ((IConjugatedPortDefinition)null).ComputeOriginalPortDefinition(), Throws.TypeOf()); } [Test] public void ComputeOwnedPortConjugator_ThrowsNotSupportedException() { - Assert.Throws(() => ((IConjugatedPortDefinition)null).ComputeOwnedPortConjugator()); + Assert.That(() => ((IConjugatedPortDefinition)null).ComputeOwnedPortConjugator(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/ConjugatedPortTypingExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ConjugatedPortTypingExtensionsTestFixture.cs index 66c2dbd5..34b4840b 100644 --- a/SysML2.NET.Tests/Extend/ConjugatedPortTypingExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/ConjugatedPortTypingExtensionsTestFixture.cs @@ -32,7 +32,7 @@ public class ConjugatedPortTypingExtensionsTestFixture [Test] public void ComputePortDefinition_ThrowsNotSupportedException() { - Assert.Throws(() => ((IConjugatedPortTyping)null).ComputePortDefinition()); + Assert.That(() => ((IConjugatedPortTyping)null).ComputePortDefinition(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/ConjugationExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ConjugationExtensionsTestFixture.cs index 0c9481ef..df1874de 100644 --- a/SysML2.NET.Tests/Extend/ConjugationExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/ConjugationExtensionsTestFixture.cs @@ -32,7 +32,7 @@ public class ConjugationExtensionsTestFixture [Test] public void ComputeOwningType_ThrowsNotSupportedException() { - Assert.Throws(() => ((IConjugation)null).ComputeOwningType()); + Assert.That(() => ((IConjugation)null).ComputeOwningType(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/ConnectionDefinitionExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ConnectionDefinitionExtensionsTestFixture.cs index 2dbd5578..bf3261c4 100644 --- a/SysML2.NET.Tests/Extend/ConnectionDefinitionExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/ConnectionDefinitionExtensionsTestFixture.cs @@ -32,7 +32,7 @@ public class ConnectionDefinitionExtensionsTestFixture [Test] public void ComputeConnectionEnd_ThrowsNotSupportedException() { - Assert.Throws(() => ((IConnectionDefinition)null).ComputeConnectionEnd()); + Assert.That(() => ((IConnectionDefinition)null).ComputeConnectionEnd(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/ConnectionUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ConnectionUsageExtensionsTestFixture.cs index 9ae8a147..665035a1 100644 --- a/SysML2.NET.Tests/Extend/ConnectionUsageExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/ConnectionUsageExtensionsTestFixture.cs @@ -32,7 +32,7 @@ public class ConnectionUsageExtensionsTestFixture [Test] public void ComputeConnectionDefinition_ThrowsNotSupportedException() { - Assert.Throws(() => ((IConnectionUsage)null).ComputeConnectionDefinition()); + Assert.That(() => ((IConnectionUsage)null).ComputeConnectionDefinition(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/ConnectorExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ConnectorExtensionsTestFixture.cs index e1cf2601..16538453 100644 --- a/SysML2.NET.Tests/Extend/ConnectorExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/ConnectorExtensionsTestFixture.cs @@ -32,37 +32,37 @@ public class ConnectorExtensionsTestFixture [Test] public void ComputeAssociation_ThrowsNotSupportedException() { - Assert.Throws(() => ((IConnector)null).ComputeAssociation()); + Assert.That(() => ((IConnector)null).ComputeAssociation(), Throws.TypeOf()); } [Test] public void ComputeConnectorEnd_ThrowsNotSupportedException() { - Assert.Throws(() => ((IConnector)null).ComputeConnectorEnd()); + Assert.That(() => ((IConnector)null).ComputeConnectorEnd(), Throws.TypeOf()); } [Test] public void ComputeDefaultFeaturingType_ThrowsNotSupportedException() { - Assert.Throws(() => ((IConnector)null).ComputeDefaultFeaturingType()); + Assert.That(() => ((IConnector)null).ComputeDefaultFeaturingType(), Throws.TypeOf()); } [Test] public void ComputeRelatedFeature_ThrowsNotSupportedException() { - Assert.Throws(() => ((IConnector)null).ComputeRelatedFeature()); + Assert.That(() => ((IConnector)null).ComputeRelatedFeature(), Throws.TypeOf()); } [Test] public void ComputeSourceFeature_ThrowsNotSupportedException() { - Assert.Throws(() => ((IConnector)null).ComputeSourceFeature()); + Assert.That(() => ((IConnector)null).ComputeSourceFeature(), Throws.TypeOf()); } [Test] public void ComputeTargetFeature_ThrowsNotSupportedException() { - Assert.Throws(() => ((IConnector)null).ComputeTargetFeature()); + Assert.That(() => ((IConnector)null).ComputeTargetFeature(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/ConstraintUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ConstraintUsageExtensionsTestFixture.cs index d8d4f61f..1495397c 100644 --- a/SysML2.NET.Tests/Extend/ConstraintUsageExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/ConstraintUsageExtensionsTestFixture.cs @@ -32,7 +32,7 @@ public class ConstraintUsageExtensionsTestFixture [Test] public void ComputeConstraintDefinition_ThrowsNotSupportedException() { - Assert.Throws(() => ((IConstraintUsage)null).ComputeConstraintDefinition()); + Assert.That(() => ((IConstraintUsage)null).ComputeConstraintDefinition(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/CrossSubsettingExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/CrossSubsettingExtensionsTestFixture.cs index a93a9731..8c22229f 100644 --- a/SysML2.NET.Tests/Extend/CrossSubsettingExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/CrossSubsettingExtensionsTestFixture.cs @@ -32,7 +32,7 @@ public class CrossSubsettingExtensionsTestFixture [Test] public void ComputeCrossingFeature_ThrowsNotSupportedException() { - Assert.Throws(() => ((ICrossSubsetting)null).ComputeCrossingFeature()); + Assert.That(() => ((ICrossSubsetting)null).ComputeCrossingFeature(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/DefinitionExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/DefinitionExtensionsTestFixture.cs index f9998101..141eb974 100644 --- a/SysML2.NET.Tests/Extend/DefinitionExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/DefinitionExtensionsTestFixture.cs @@ -32,188 +32,188 @@ public class DefinitionExtensionsTestFixture [Test] public void ComputeDirectedUsage_ThrowsNotSupportedException() { - Assert.Throws(() => ((IDefinition)null).ComputeDirectedUsage()); + Assert.That(() => ((IDefinition)null).ComputeDirectedUsage(), Throws.TypeOf()); } [Test] public void ComputeOwnedAction_ThrowsNotSupportedException() { - Assert.Throws(() => ((IDefinition)null).ComputeOwnedAction()); + Assert.That(() => ((IDefinition)null).ComputeOwnedAction(), Throws.TypeOf()); } [Test] public void ComputeOwnedAllocation_ThrowsNotSupportedException() { - Assert.Throws(() => ((IDefinition)null).ComputeOwnedAllocation()); + Assert.That(() => ((IDefinition)null).ComputeOwnedAllocation(), Throws.TypeOf()); } [Test] public void ComputeOwnedAnalysisCase_ThrowsNotSupportedException() { - Assert.Throws(() => ((IDefinition)null).ComputeOwnedAnalysisCase()); + Assert.That(() => ((IDefinition)null).ComputeOwnedAnalysisCase(), Throws.TypeOf()); } [Test] public void ComputeOwnedAttribute_ThrowsNotSupportedException() { - Assert.Throws(() => ((IDefinition)null).ComputeOwnedAttribute()); + Assert.That(() => ((IDefinition)null).ComputeOwnedAttribute(), Throws.TypeOf()); } [Test] public void ComputeOwnedCalculation_ThrowsNotSupportedException() { - Assert.Throws(() => ((IDefinition)null).ComputeOwnedCalculation()); + Assert.That(() => ((IDefinition)null).ComputeOwnedCalculation(), Throws.TypeOf()); } [Test] public void ComputeOwnedCase_ThrowsNotSupportedException() { - Assert.Throws(() => ((IDefinition)null).ComputeOwnedCase()); + Assert.That(() => ((IDefinition)null).ComputeOwnedCase(), Throws.TypeOf()); } [Test] public void ComputeOwnedConcern_ThrowsNotSupportedException() { - Assert.Throws(() => ((IDefinition)null).ComputeOwnedConcern()); + Assert.That(() => ((IDefinition)null).ComputeOwnedConcern(), Throws.TypeOf()); } [Test] public void ComputeOwnedConnection_ThrowsNotSupportedException() { - Assert.Throws(() => ((IDefinition)null).ComputeOwnedConnection()); + Assert.That(() => ((IDefinition)null).ComputeOwnedConnection(), Throws.TypeOf()); } [Test] public void ComputeOwnedConstraint_ThrowsNotSupportedException() { - Assert.Throws(() => ((IDefinition)null).ComputeOwnedConstraint()); + Assert.That(() => ((IDefinition)null).ComputeOwnedConstraint(), Throws.TypeOf()); } [Test] public void ComputeOwnedEnumeration_ThrowsNotSupportedException() { - Assert.Throws(() => ((IDefinition)null).ComputeOwnedEnumeration()); + Assert.That(() => ((IDefinition)null).ComputeOwnedEnumeration(), Throws.TypeOf()); } [Test] public void ComputeOwnedFlow_ThrowsNotSupportedException() { - Assert.Throws(() => ((IDefinition)null).ComputeOwnedFlow()); + Assert.That(() => ((IDefinition)null).ComputeOwnedFlow(), Throws.TypeOf()); } [Test] public void ComputeOwnedInterface_ThrowsNotSupportedException() { - Assert.Throws(() => ((IDefinition)null).ComputeOwnedInterface()); + Assert.That(() => ((IDefinition)null).ComputeOwnedInterface(), Throws.TypeOf()); } [Test] public void ComputeOwnedItem_ThrowsNotSupportedException() { - Assert.Throws(() => ((IDefinition)null).ComputeOwnedItem()); + Assert.That(() => ((IDefinition)null).ComputeOwnedItem(), Throws.TypeOf()); } [Test] public void ComputeOwnedMetadata_ThrowsNotSupportedException() { - Assert.Throws(() => ((IDefinition)null).ComputeOwnedMetadata()); + Assert.That(() => ((IDefinition)null).ComputeOwnedMetadata(), Throws.TypeOf()); } [Test] public void ComputeOwnedOccurrence_ThrowsNotSupportedException() { - Assert.Throws(() => ((IDefinition)null).ComputeOwnedOccurrence()); + Assert.That(() => ((IDefinition)null).ComputeOwnedOccurrence(), Throws.TypeOf()); } [Test] public void ComputeOwnedPart_ThrowsNotSupportedException() { - Assert.Throws(() => ((IDefinition)null).ComputeOwnedPart()); + Assert.That(() => ((IDefinition)null).ComputeOwnedPart(), Throws.TypeOf()); } [Test] public void ComputeOwnedPort_ThrowsNotSupportedException() { - Assert.Throws(() => ((IDefinition)null).ComputeOwnedPort()); + Assert.That(() => ((IDefinition)null).ComputeOwnedPort(), Throws.TypeOf()); } [Test] public void ComputeOwnedReference_ThrowsNotSupportedException() { - Assert.Throws(() => ((IDefinition)null).ComputeOwnedReference()); + Assert.That(() => ((IDefinition)null).ComputeOwnedReference(), Throws.TypeOf()); } [Test] public void ComputeOwnedRendering_ThrowsNotSupportedException() { - Assert.Throws(() => ((IDefinition)null).ComputeOwnedRendering()); + Assert.That(() => ((IDefinition)null).ComputeOwnedRendering(), Throws.TypeOf()); } [Test] public void ComputeOwnedRequirement_ThrowsNotSupportedException() { - Assert.Throws(() => ((IDefinition)null).ComputeOwnedRequirement()); + Assert.That(() => ((IDefinition)null).ComputeOwnedRequirement(), Throws.TypeOf()); } [Test] public void ComputeOwnedState_ThrowsNotSupportedException() { - Assert.Throws(() => ((IDefinition)null).ComputeOwnedState()); + Assert.That(() => ((IDefinition)null).ComputeOwnedState(), Throws.TypeOf()); } [Test] public void ComputeOwnedTransition_ThrowsNotSupportedException() { - Assert.Throws(() => ((IDefinition)null).ComputeOwnedTransition()); + Assert.That(() => ((IDefinition)null).ComputeOwnedTransition(), Throws.TypeOf()); } [Test] public void ComputeOwnedUsage_ThrowsNotSupportedException() { - Assert.Throws(() => ((IDefinition)null).ComputeOwnedUsage()); + Assert.That(() => ((IDefinition)null).ComputeOwnedUsage(), Throws.TypeOf()); } [Test] public void ComputeOwnedUseCase_ThrowsNotSupportedException() { - Assert.Throws(() => ((IDefinition)null).ComputeOwnedUseCase()); + Assert.That(() => ((IDefinition)null).ComputeOwnedUseCase(), Throws.TypeOf()); } [Test] public void ComputeOwnedVerificationCase_ThrowsNotSupportedException() { - Assert.Throws(() => ((IDefinition)null).ComputeOwnedVerificationCase()); + Assert.That(() => ((IDefinition)null).ComputeOwnedVerificationCase(), Throws.TypeOf()); } [Test] public void ComputeOwnedView_ThrowsNotSupportedException() { - Assert.Throws(() => ((IDefinition)null).ComputeOwnedView()); + Assert.That(() => ((IDefinition)null).ComputeOwnedView(), Throws.TypeOf()); } [Test] public void ComputeOwnedViewpoint_ThrowsNotSupportedException() { - Assert.Throws(() => ((IDefinition)null).ComputeOwnedViewpoint()); + Assert.That(() => ((IDefinition)null).ComputeOwnedViewpoint(), Throws.TypeOf()); } [Test] public void ComputeUsage_ThrowsNotSupportedException() { - Assert.Throws(() => ((IDefinition)null).ComputeUsage()); + Assert.That(() => ((IDefinition)null).ComputeUsage(), Throws.TypeOf()); } [Test] public void ComputeVariant_ThrowsNotSupportedException() { - Assert.Throws(() => ((IDefinition)null).ComputeVariant()); + Assert.That(() => ((IDefinition)null).ComputeVariant(), Throws.TypeOf()); } [Test] public void ComputeVariantMembership_ThrowsNotSupportedException() { - Assert.Throws(() => ((IDefinition)null).ComputeVariantMembership()); + Assert.That(() => ((IDefinition)null).ComputeVariantMembership(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/DifferencingExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/DifferencingExtensionsTestFixture.cs index 948f4681..7c5f31ef 100644 --- a/SysML2.NET.Tests/Extend/DifferencingExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/DifferencingExtensionsTestFixture.cs @@ -32,7 +32,7 @@ public class DifferencingExtensionsTestFixture [Test] public void ComputeTypeDifferenced_ThrowsNotSupportedException() { - Assert.Throws(() => ((IDifferencing)null).ComputeTypeDifferenced()); + Assert.That(() => ((IDifferencing)null).ComputeTypeDifferenced(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/DisjoiningExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/DisjoiningExtensionsTestFixture.cs index d4b0c0f8..15969bde 100644 --- a/SysML2.NET.Tests/Extend/DisjoiningExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/DisjoiningExtensionsTestFixture.cs @@ -32,7 +32,7 @@ public class DisjoiningExtensionsTestFixture [Test] public void ComputeOwningType_ThrowsNotSupportedException() { - Assert.Throws(() => ((IDisjoining)null).ComputeOwningType()); + Assert.That(() => ((IDisjoining)null).ComputeOwningType(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/DocumentationExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/DocumentationExtensionsTestFixture.cs index 8d248cbb..60c417fa 100644 --- a/SysML2.NET.Tests/Extend/DocumentationExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/DocumentationExtensionsTestFixture.cs @@ -32,7 +32,7 @@ public class DocumentationExtensionsTestFixture [Test] public void ComputeDocumentedElement_ThrowsNotSupportedException() { - Assert.Throws(() => ((IDocumentation)null).ComputeDocumentedElement()); + Assert.That(() => ((IDocumentation)null).ComputeDocumentedElement(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/ElementExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ElementExtensionsTestFixture.cs index df68e44d..dcfd0bfa 100644 --- a/SysML2.NET.Tests/Extend/ElementExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/ElementExtensionsTestFixture.cs @@ -32,67 +32,67 @@ public class ElementExtensionsTestFixture [Test] public void ComputeDocumentation_ThrowsNotSupportedException() { - Assert.Throws(() => ((IElement)null).ComputeDocumentation()); + Assert.That(() => ((IElement)null).ComputeDocumentation(), Throws.TypeOf()); } [Test] public void ComputeIsLibraryElement_ThrowsNotSupportedException() { - Assert.Throws(() => ((IElement)null).ComputeIsLibraryElement()); + Assert.That(() => ((IElement)null).ComputeIsLibraryElement(), Throws.TypeOf()); } [Test] public void ComputeName_ThrowsNotSupportedException() { - Assert.Throws(() => ((IElement)null).ComputeName()); + Assert.That(() => ((IElement)null).ComputeName(), Throws.TypeOf()); } [Test] public void ComputeOwnedAnnotation_ThrowsNotSupportedException() { - Assert.Throws(() => ((IElement)null).ComputeOwnedAnnotation()); + Assert.That(() => ((IElement)null).ComputeOwnedAnnotation(), Throws.TypeOf()); } [Test] public void ComputeOwnedElement_ThrowsNotSupportedException() { - Assert.Throws(() => ((IElement)null).ComputeOwnedElement()); + Assert.That(() => ((IElement)null).ComputeOwnedElement(), Throws.TypeOf()); } [Test] public void ComputeOwner_ThrowsNotSupportedException() { - Assert.Throws(() => ((IElement)null).ComputeOwner()); + Assert.That(() => ((IElement)null).ComputeOwner(), Throws.TypeOf()); } [Test] public void ComputeOwningMembership_ThrowsNotSupportedException() { - Assert.Throws(() => ((IElement)null).ComputeOwningMembership()); + Assert.That(() => ((IElement)null).ComputeOwningMembership(), Throws.TypeOf()); } [Test] public void ComputeOwningNamespace_ThrowsNotSupportedException() { - Assert.Throws(() => ((IElement)null).ComputeOwningNamespace()); + Assert.That(() => ((IElement)null).ComputeOwningNamespace(), Throws.TypeOf()); } [Test] public void ComputeQualifiedName_ThrowsNotSupportedException() { - Assert.Throws(() => ((IElement)null).ComputeQualifiedName()); + Assert.That(() => ((IElement)null).ComputeQualifiedName(), Throws.TypeOf()); } [Test] public void ComputeShortName_ThrowsNotSupportedException() { - Assert.Throws(() => ((IElement)null).ComputeShortName()); + Assert.That(() => ((IElement)null).ComputeShortName(), Throws.TypeOf()); } [Test] public void ComputeTextualRepresentation_ThrowsNotSupportedException() { - Assert.Throws(() => ((IElement)null).ComputeTextualRepresentation()); + Assert.That(() => ((IElement)null).ComputeTextualRepresentation(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/ElementFilterMembershipExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ElementFilterMembershipExtensionsTestFixture.cs index 82bb41d8..e55c78ed 100644 --- a/SysML2.NET.Tests/Extend/ElementFilterMembershipExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/ElementFilterMembershipExtensionsTestFixture.cs @@ -32,7 +32,7 @@ public class ElementFilterMembershipExtensionsTestFixture [Test] public void ComputeCondition_ThrowsNotSupportedException() { - Assert.Throws(() => ((IElementFilterMembership)null).ComputeCondition()); + Assert.That(() => ((IElementFilterMembership)null).ComputeCondition(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/EndFeatureMembershipExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/EndFeatureMembershipExtensionsTestFixture.cs index 579043b4..8a121303 100644 --- a/SysML2.NET.Tests/Extend/EndFeatureMembershipExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/EndFeatureMembershipExtensionsTestFixture.cs @@ -32,7 +32,7 @@ public class EndFeatureMembershipExtensionsTestFixture [Test] public void ComputeOwnedMemberFeature_ThrowsNotSupportedException() { - Assert.Throws(() => ((IEndFeatureMembership)null).ComputeOwnedMemberFeature()); + Assert.That(() => ((IEndFeatureMembership)null).ComputeOwnedMemberFeature(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/EnumerationDefinitionExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/EnumerationDefinitionExtensionsTestFixture.cs index e3fa6ba7..9cf7ac89 100644 --- a/SysML2.NET.Tests/Extend/EnumerationDefinitionExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/EnumerationDefinitionExtensionsTestFixture.cs @@ -32,7 +32,7 @@ public class EnumerationDefinitionExtensionsTestFixture [Test] public void ComputeEnumeratedValue_ThrowsNotSupportedException() { - Assert.Throws(() => ((IEnumerationDefinition)null).ComputeEnumeratedValue()); + Assert.That(() => ((IEnumerationDefinition)null).ComputeEnumeratedValue(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/EnumerationUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/EnumerationUsageExtensionsTestFixture.cs index 660ebd66..f29e9be2 100644 --- a/SysML2.NET.Tests/Extend/EnumerationUsageExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/EnumerationUsageExtensionsTestFixture.cs @@ -32,7 +32,7 @@ public class EnumerationUsageExtensionsTestFixture [Test] public void ComputeEnumerationDefinition_ThrowsNotSupportedException() { - Assert.Throws(() => ((IEnumerationUsage)null).ComputeEnumerationDefinition()); + Assert.That(() => ((IEnumerationUsage)null).ComputeEnumerationDefinition(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/EventOccurrenceUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/EventOccurrenceUsageExtensionsTestFixture.cs index 66283618..600a74f0 100644 --- a/SysML2.NET.Tests/Extend/EventOccurrenceUsageExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/EventOccurrenceUsageExtensionsTestFixture.cs @@ -32,13 +32,13 @@ public class EventOccurrenceUsageExtensionsTestFixture [Test] public void ComputeEventOccurrence_ThrowsNotSupportedException() { - Assert.Throws(() => ((IEventOccurrenceUsage)null).ComputeEventOccurrence()); + Assert.That(() => ((IEventOccurrenceUsage)null).ComputeEventOccurrence(), Throws.TypeOf()); } [Test] public void ComputeIsReference_ThrowsNotSupportedException() { - Assert.Throws(() => ((IEventOccurrenceUsage)null).ComputeIsReference()); + Assert.That(() => ((IEventOccurrenceUsage)null).ComputeIsReference(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/ExhibitStateUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ExhibitStateUsageExtensionsTestFixture.cs index b4f11a09..e1979b8a 100644 --- a/SysML2.NET.Tests/Extend/ExhibitStateUsageExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/ExhibitStateUsageExtensionsTestFixture.cs @@ -32,7 +32,7 @@ public class ExhibitStateUsageExtensionsTestFixture [Test] public void ComputeExhibitedState_ThrowsNotSupportedException() { - Assert.Throws(() => ((IExhibitStateUsage)null).ComputeExhibitedState()); + Assert.That(() => ((IExhibitStateUsage)null).ComputeExhibitedState(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/ExpressionExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ExpressionExtensionsTestFixture.cs index 6449ab53..cf5de798 100644 --- a/SysML2.NET.Tests/Extend/ExpressionExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/ExpressionExtensionsTestFixture.cs @@ -32,19 +32,19 @@ public class ExpressionExtensionsTestFixture [Test] public void ComputeFunction_ThrowsNotSupportedException() { - Assert.Throws(() => ((IExpression)null).ComputeFunction()); + Assert.That(() => ((IExpression)null).ComputeFunction(), Throws.TypeOf()); } [Test] public void ComputeIsModelLevelEvaluable_ThrowsNotSupportedException() { - Assert.Throws(() => ((IExpression)null).ComputeIsModelLevelEvaluable()); + Assert.That(() => ((IExpression)null).ComputeIsModelLevelEvaluable(), Throws.TypeOf()); } [Test] public void ComputeResult_ThrowsNotSupportedException() { - Assert.Throws(() => ((IExpression)null).ComputeResult()); + Assert.That(() => ((IExpression)null).ComputeResult(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/FeatureChainExpressionExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/FeatureChainExpressionExtensionsTestFixture.cs index 9d1be1d3..0824867a 100644 --- a/SysML2.NET.Tests/Extend/FeatureChainExpressionExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/FeatureChainExpressionExtensionsTestFixture.cs @@ -32,7 +32,7 @@ public class FeatureChainExpressionExtensionsTestFixture [Test] public void ComputeTargetFeature_ThrowsNotSupportedException() { - Assert.Throws(() => ((IFeatureChainExpression)null).ComputeTargetFeature()); + Assert.That(() => ((IFeatureChainExpression)null).ComputeTargetFeature(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/FeatureChainingExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/FeatureChainingExtensionsTestFixture.cs index fa55eaa5..ac46c8a0 100644 --- a/SysML2.NET.Tests/Extend/FeatureChainingExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/FeatureChainingExtensionsTestFixture.cs @@ -32,7 +32,7 @@ public class FeatureChainingExtensionsTestFixture [Test] public void ComputeFeatureChained_ThrowsNotSupportedException() { - Assert.Throws(() => ((IFeatureChaining)null).ComputeFeatureChained()); + Assert.That(() => ((IFeatureChaining)null).ComputeFeatureChained(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/FeatureExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/FeatureExtensionsTestFixture.cs index 5a01ca53..08b69bb1 100644 --- a/SysML2.NET.Tests/Extend/FeatureExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/FeatureExtensionsTestFixture.cs @@ -32,97 +32,97 @@ public class FeatureExtensionsTestFixture [Test] public void ComputeChainingFeature_ThrowsNotSupportedException() { - Assert.Throws(() => ((IFeature)null).ComputeChainingFeature()); + Assert.That(() => ((IFeature)null).ComputeChainingFeature(), Throws.TypeOf()); } [Test] public void ComputeCrossFeature_ThrowsNotSupportedException() { - Assert.Throws(() => ((IFeature)null).ComputeCrossFeature()); + Assert.That(() => ((IFeature)null).ComputeCrossFeature(), Throws.TypeOf()); } [Test] public void ComputeEndOwningType_ThrowsNotSupportedException() { - Assert.Throws(() => ((IFeature)null).ComputeEndOwningType()); + Assert.That(() => ((IFeature)null).ComputeEndOwningType(), Throws.TypeOf()); } [Test] public void ComputeFeatureTarget_ThrowsNotSupportedException() { - Assert.Throws(() => ((IFeature)null).ComputeFeatureTarget()); + Assert.That(() => ((IFeature)null).ComputeFeatureTarget(), Throws.TypeOf()); } [Test] public void ComputeFeaturingType_ThrowsNotSupportedException() { - Assert.Throws(() => ((IFeature)null).ComputeFeaturingType()); + Assert.That(() => ((IFeature)null).ComputeFeaturingType(), Throws.TypeOf()); } [Test] public void ComputeOwnedCrossSubsetting_ThrowsNotSupportedException() { - Assert.Throws(() => ((IFeature)null).ComputeOwnedCrossSubsetting()); + Assert.That(() => ((IFeature)null).ComputeOwnedCrossSubsetting(), Throws.TypeOf()); } [Test] public void ComputeOwnedFeatureChaining_ThrowsNotSupportedException() { - Assert.Throws(() => ((IFeature)null).ComputeOwnedFeatureChaining()); + Assert.That(() => ((IFeature)null).ComputeOwnedFeatureChaining(), Throws.TypeOf()); } [Test] public void ComputeOwnedFeatureInverting_ThrowsNotSupportedException() { - Assert.Throws(() => ((IFeature)null).ComputeOwnedFeatureInverting()); + Assert.That(() => ((IFeature)null).ComputeOwnedFeatureInverting(), Throws.TypeOf()); } [Test] public void ComputeOwnedRedefinition_ThrowsNotSupportedException() { - Assert.Throws(() => ((IFeature)null).ComputeOwnedRedefinition()); + Assert.That(() => ((IFeature)null).ComputeOwnedRedefinition(), Throws.TypeOf()); } [Test] public void ComputeOwnedReferenceSubsetting_ThrowsNotSupportedException() { - Assert.Throws(() => ((IFeature)null).ComputeOwnedReferenceSubsetting()); + Assert.That(() => ((IFeature)null).ComputeOwnedReferenceSubsetting(), Throws.TypeOf()); } [Test] public void ComputeOwnedSubsetting_ThrowsNotSupportedException() { - Assert.Throws(() => ((IFeature)null).ComputeOwnedSubsetting()); + Assert.That(() => ((IFeature)null).ComputeOwnedSubsetting(), Throws.TypeOf()); } [Test] public void ComputeOwnedTypeFeaturing_ThrowsNotSupportedException() { - Assert.Throws(() => ((IFeature)null).ComputeOwnedTypeFeaturing()); + Assert.That(() => ((IFeature)null).ComputeOwnedTypeFeaturing(), Throws.TypeOf()); } [Test] public void ComputeOwnedTyping_ThrowsNotSupportedException() { - Assert.Throws(() => ((IFeature)null).ComputeOwnedTyping()); + Assert.That(() => ((IFeature)null).ComputeOwnedTyping(), Throws.TypeOf()); } [Test] public void ComputeOwningFeatureMembership_ThrowsNotSupportedException() { - Assert.Throws(() => ((IFeature)null).ComputeOwningFeatureMembership()); + Assert.That(() => ((IFeature)null).ComputeOwningFeatureMembership(), Throws.TypeOf()); } [Test] public void ComputeOwningType_ThrowsNotSupportedException() { - Assert.Throws(() => ((IFeature)null).ComputeOwningType()); + Assert.That(() => ((IFeature)null).ComputeOwningType(), Throws.TypeOf()); } [Test] public void ComputeType_ThrowsNotSupportedException() { - Assert.Throws(() => ((IFeature)null).ComputeType()); + Assert.That(() => ((IFeature)null).ComputeType(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/FeatureInvertingExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/FeatureInvertingExtensionsTestFixture.cs index 575607e8..655ce32d 100644 --- a/SysML2.NET.Tests/Extend/FeatureInvertingExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/FeatureInvertingExtensionsTestFixture.cs @@ -32,7 +32,7 @@ public class FeatureInvertingExtensionsTestFixture [Test] public void ComputeOwningFeature_ThrowsNotSupportedException() { - Assert.Throws(() => ((IFeatureInverting)null).ComputeOwningFeature()); + Assert.That(() => ((IFeatureInverting)null).ComputeOwningFeature(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/FeatureMembershipExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/FeatureMembershipExtensionsTestFixture.cs index 57e8c6dc..dc9b93b0 100644 --- a/SysML2.NET.Tests/Extend/FeatureMembershipExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/FeatureMembershipExtensionsTestFixture.cs @@ -32,13 +32,13 @@ public class FeatureMembershipExtensionsTestFixture [Test] public void ComputeOwnedMemberFeature_ThrowsNotSupportedException() { - Assert.Throws(() => ((IFeatureMembership)null).ComputeOwnedMemberFeature()); + Assert.That(() => ((IFeatureMembership)null).ComputeOwnedMemberFeature(), Throws.TypeOf()); } [Test] public void ComputeOwningType_ThrowsNotSupportedException() { - Assert.Throws(() => ((IFeatureMembership)null).ComputeOwningType()); + Assert.That(() => ((IFeatureMembership)null).ComputeOwningType(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/FeatureReferenceExpressionExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/FeatureReferenceExpressionExtensionsTestFixture.cs index 3e57f3ba..1ec91c35 100644 --- a/SysML2.NET.Tests/Extend/FeatureReferenceExpressionExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/FeatureReferenceExpressionExtensionsTestFixture.cs @@ -32,7 +32,7 @@ public class FeatureReferenceExpressionExtensionsTestFixture [Test] public void ComputeReferent_ThrowsNotSupportedException() { - Assert.Throws(() => ((IFeatureReferenceExpression)null).ComputeReferent()); + Assert.That(() => ((IFeatureReferenceExpression)null).ComputeReferent(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/FeatureTypingExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/FeatureTypingExtensionsTestFixture.cs index edc2a70d..553e9ddb 100644 --- a/SysML2.NET.Tests/Extend/FeatureTypingExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/FeatureTypingExtensionsTestFixture.cs @@ -32,7 +32,7 @@ public class FeatureTypingExtensionsTestFixture [Test] public void ComputeOwningFeature_ThrowsNotSupportedException() { - Assert.Throws(() => ((IFeatureTyping)null).ComputeOwningFeature()); + Assert.That(() => ((IFeatureTyping)null).ComputeOwningFeature(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/FeatureValueExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/FeatureValueExtensionsTestFixture.cs index 3400acc5..74b662ec 100644 --- a/SysML2.NET.Tests/Extend/FeatureValueExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/FeatureValueExtensionsTestFixture.cs @@ -32,13 +32,13 @@ public class FeatureValueExtensionsTestFixture [Test] public void ComputeFeatureWithValue_ThrowsNotSupportedException() { - Assert.Throws(() => ((IFeatureValue)null).ComputeFeatureWithValue()); + Assert.That(() => ((IFeatureValue)null).ComputeFeatureWithValue(), Throws.TypeOf()); } [Test] public void ComputeValue_ThrowsNotSupportedException() { - Assert.Throws(() => ((IFeatureValue)null).ComputeValue()); + Assert.That(() => ((IFeatureValue)null).ComputeValue(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/FlowDefinitionExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/FlowDefinitionExtensionsTestFixture.cs index d071df89..3f5dc6ee 100644 --- a/SysML2.NET.Tests/Extend/FlowDefinitionExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/FlowDefinitionExtensionsTestFixture.cs @@ -32,7 +32,7 @@ public class FlowDefinitionExtensionsTestFixture [Test] public void ComputeFlowEnd_ThrowsNotSupportedException() { - Assert.Throws(() => ((IFlowDefinition)null).ComputeFlowEnd()); + Assert.That(() => ((IFlowDefinition)null).ComputeFlowEnd(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/FlowExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/FlowExtensionsTestFixture.cs index d966dac8..344b82db 100644 --- a/SysML2.NET.Tests/Extend/FlowExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/FlowExtensionsTestFixture.cs @@ -32,37 +32,37 @@ public class FlowExtensionsTestFixture [Test] public void ComputeFlowEnd_ThrowsNotSupportedException() { - Assert.Throws(() => ((IFlow)null).ComputeFlowEnd()); + Assert.That(() => ((IFlow)null).ComputeFlowEnd(), Throws.TypeOf()); } [Test] public void ComputeInteraction_ThrowsNotSupportedException() { - Assert.Throws(() => ((IFlow)null).ComputeInteraction()); + Assert.That(() => ((IFlow)null).ComputeInteraction(), Throws.TypeOf()); } [Test] public void ComputePayloadFeature_ThrowsNotSupportedException() { - Assert.Throws(() => ((IFlow)null).ComputePayloadFeature()); + Assert.That(() => ((IFlow)null).ComputePayloadFeature(), Throws.TypeOf()); } [Test] public void ComputePayloadType_ThrowsNotSupportedException() { - Assert.Throws(() => ((IFlow)null).ComputePayloadType()); + Assert.That(() => ((IFlow)null).ComputePayloadType(), Throws.TypeOf()); } [Test] public void ComputeSourceOutputFeature_ThrowsNotSupportedException() { - Assert.Throws(() => ((IFlow)null).ComputeSourceOutputFeature()); + Assert.That(() => ((IFlow)null).ComputeSourceOutputFeature(), Throws.TypeOf()); } [Test] public void ComputeTargetInputFeature_ThrowsNotSupportedException() { - Assert.Throws(() => ((IFlow)null).ComputeTargetInputFeature()); + Assert.That(() => ((IFlow)null).ComputeTargetInputFeature(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/FlowUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/FlowUsageExtensionsTestFixture.cs index c872e295..e25b5590 100644 --- a/SysML2.NET.Tests/Extend/FlowUsageExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/FlowUsageExtensionsTestFixture.cs @@ -32,7 +32,7 @@ public class FlowUsageExtensionsTestFixture [Test] public void ComputeFlowDefinition_ThrowsNotSupportedException() { - Assert.Throws(() => ((IFlowUsage)null).ComputeFlowDefinition()); + Assert.That(() => ((IFlowUsage)null).ComputeFlowDefinition(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/ForLoopActionUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ForLoopActionUsageExtensionsTestFixture.cs index 80e8f523..d456f3f6 100644 --- a/SysML2.NET.Tests/Extend/ForLoopActionUsageExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/ForLoopActionUsageExtensionsTestFixture.cs @@ -32,13 +32,13 @@ public class ForLoopActionUsageExtensionsTestFixture [Test] public void ComputeLoopVariable_ThrowsNotSupportedException() { - Assert.Throws(() => ((IForLoopActionUsage)null).ComputeLoopVariable()); + Assert.That(() => ((IForLoopActionUsage)null).ComputeLoopVariable(), Throws.TypeOf()); } [Test] public void ComputeSeqArgument_ThrowsNotSupportedException() { - Assert.Throws(() => ((IForLoopActionUsage)null).ComputeSeqArgument()); + Assert.That(() => ((IForLoopActionUsage)null).ComputeSeqArgument(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/FramedConcernMembershipExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/FramedConcernMembershipExtensionsTestFixture.cs index a0ff1028..8adb5ec7 100644 --- a/SysML2.NET.Tests/Extend/FramedConcernMembershipExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/FramedConcernMembershipExtensionsTestFixture.cs @@ -32,12 +32,12 @@ public class FramedConcernMembershipExtensionsTestFixture [Test] public void ComputeOwnedConcern_ThrowsNotSupportedException() { - Assert.Throws(() => ((IFramedConcernMembership)null).ComputeOwnedConcern()); + Assert.That(() => ((IFramedConcernMembership)null).ComputeOwnedConcern(), Throws.TypeOf()); } [Test] public void ComputeReferencedConcern_ThrowsNotSupportedException() { - Assert.Throws(() => ((IFramedConcernMembership)null).ComputeReferencedConcern()); + Assert.That(() => ((IFramedConcernMembership)null).ComputeReferencedConcern(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/FunctionExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/FunctionExtensionsTestFixture.cs index ee4c1b53..c056b80c 100644 --- a/SysML2.NET.Tests/Extend/FunctionExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/FunctionExtensionsTestFixture.cs @@ -32,19 +32,19 @@ public class FunctionExtensionsTestFixture [Test] public void ComputeExpression_ThrowsNotSupportedException() { - Assert.Throws(() => ((IFunction)null).ComputeExpression()); + Assert.That(() => ((IFunction)null).ComputeExpression(), Throws.TypeOf()); } [Test] public void ComputeIsModelLevelEvaluable_ThrowsNotSupportedException() { - Assert.Throws(() => ((IFunction)null).ComputeIsModelLevelEvaluable()); + Assert.That(() => ((IFunction)null).ComputeIsModelLevelEvaluable(), Throws.TypeOf()); } [Test] public void ComputeResult_ThrowsNotSupportedException() { - Assert.Throws(() => ((IFunction)null).ComputeResult()); + Assert.That(() => ((IFunction)null).ComputeResult(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/IfActionUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/IfActionUsageExtensionsTestFixture.cs index f6cc3122..5b16655f 100644 --- a/SysML2.NET.Tests/Extend/IfActionUsageExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/IfActionUsageExtensionsTestFixture.cs @@ -32,19 +32,19 @@ public class IfActionUsageExtensionsTestFixture [Test] public void ComputeElseAction_ThrowsNotSupportedException() { - Assert.Throws(() => ((IIfActionUsage)null).ComputeElseAction()); + Assert.That(() => ((IIfActionUsage)null).ComputeElseAction(), Throws.TypeOf()); } [Test] public void ComputeIfArgument_ThrowsNotSupportedException() { - Assert.Throws(() => ((IIfActionUsage)null).ComputeIfArgument()); + Assert.That(() => ((IIfActionUsage)null).ComputeIfArgument(), Throws.TypeOf()); } [Test] public void ComputeThenAction_ThrowsNotSupportedException() { - Assert.Throws(() => ((IIfActionUsage)null).ComputeThenAction()); + Assert.That(() => ((IIfActionUsage)null).ComputeThenAction(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/ImportExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ImportExtensionsTestFixture.cs index da9adf40..d8d1954e 100644 --- a/SysML2.NET.Tests/Extend/ImportExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/ImportExtensionsTestFixture.cs @@ -32,13 +32,13 @@ public class ImportExtensionsTestFixture [Test] public void ComputeImportedElement_ThrowsNotSupportedException() { - Assert.Throws(() => ((IImport)null).ComputeImportedElement()); + Assert.That(() => ((IImport)null).ComputeImportedElement(), Throws.TypeOf()); } [Test] public void ComputeImportOwningNamespace_ThrowsNotSupportedException() { - Assert.Throws(() => ((IImport)null).ComputeImportOwningNamespace()); + Assert.That(() => ((IImport)null).ComputeImportOwningNamespace(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/IncludeUseCaseUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/IncludeUseCaseUsageExtensionsTestFixture.cs index bc20f8a6..0e2fb42a 100644 --- a/SysML2.NET.Tests/Extend/IncludeUseCaseUsageExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/IncludeUseCaseUsageExtensionsTestFixture.cs @@ -32,7 +32,7 @@ public class IncludeUseCaseUsageExtensionsTestFixture [Test] public void ComputeUseCaseIncluded_ThrowsNotSupportedException() { - Assert.Throws(() => ((IIncludeUseCaseUsage)null).ComputeUseCaseIncluded()); + Assert.That(() => ((IIncludeUseCaseUsage)null).ComputeUseCaseIncluded(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/InstantiationExpressionExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/InstantiationExpressionExtensionsTestFixture.cs index 7a90e379..d9371616 100644 --- a/SysML2.NET.Tests/Extend/InstantiationExpressionExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/InstantiationExpressionExtensionsTestFixture.cs @@ -32,13 +32,13 @@ public class InstantiationExpressionExtensionsTestFixture [Test] public void ComputeArgument_ThrowsNotSupportedException() { - Assert.Throws(() => ((IInstantiationExpression)null).ComputeArgument()); + Assert.That(() => ((IInstantiationExpression)null).ComputeArgument(), Throws.TypeOf()); } [Test] public void ComputeInstantiatedType_ThrowsNotSupportedException() { - Assert.Throws(() => ((IInstantiationExpression)null).ComputeInstantiatedType()); + Assert.That(() => ((IInstantiationExpression)null).ComputeInstantiatedType(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/InterfaceDefinitionExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/InterfaceDefinitionExtensionsTestFixture.cs index 15c08524..bf4b455a 100644 --- a/SysML2.NET.Tests/Extend/InterfaceDefinitionExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/InterfaceDefinitionExtensionsTestFixture.cs @@ -32,7 +32,7 @@ public class InterfaceDefinitionExtensionsTestFixture [Test] public void ComputeInterfaceEnd_ThrowsNotSupportedException() { - Assert.Throws(() => ((IInterfaceDefinition)null).ComputeInterfaceEnd()); + Assert.That(() => ((IInterfaceDefinition)null).ComputeInterfaceEnd(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/InterfaceUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/InterfaceUsageExtensionsTestFixture.cs index 4d85e752..34c760dd 100644 --- a/SysML2.NET.Tests/Extend/InterfaceUsageExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/InterfaceUsageExtensionsTestFixture.cs @@ -32,7 +32,7 @@ public class InterfaceUsageExtensionsTestFixture [Test] public void ComputeInterfaceDefinition_ThrowsNotSupportedException() { - Assert.Throws(() => ((IInterfaceUsage)null).ComputeInterfaceDefinition()); + Assert.That(() => ((IInterfaceUsage)null).ComputeInterfaceDefinition(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/IntersectingExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/IntersectingExtensionsTestFixture.cs index d8c3a1c6..640e5d10 100644 --- a/SysML2.NET.Tests/Extend/IntersectingExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/IntersectingExtensionsTestFixture.cs @@ -32,7 +32,7 @@ public class IntersectingExtensionsTestFixture [Test] public void ComputeTypeIntersected_ThrowsNotSupportedException() { - Assert.Throws(() => ((IIntersecting)null).ComputeTypeIntersected()); + Assert.That(() => ((IIntersecting)null).ComputeTypeIntersected(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/ItemUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ItemUsageExtensionsTestFixture.cs index f03e1709..e2f1a0a1 100644 --- a/SysML2.NET.Tests/Extend/ItemUsageExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/ItemUsageExtensionsTestFixture.cs @@ -32,7 +32,7 @@ public class ItemUsageExtensionsTestFixture [Test] public void ComputeItemDefinition_ThrowsNotSupportedException() { - Assert.Throws(() => ((IItemUsage)null).ComputeItemDefinition()); + Assert.That(() => ((IItemUsage)null).ComputeItemDefinition(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/LoopActionUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/LoopActionUsageExtensionsTestFixture.cs index f1dadcb2..200e7a85 100644 --- a/SysML2.NET.Tests/Extend/LoopActionUsageExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/LoopActionUsageExtensionsTestFixture.cs @@ -32,7 +32,7 @@ public class LoopActionUsageExtensionsTestFixture [Test] public void ComputeBodyAction_ThrowsNotSupportedException() { - Assert.Throws(() => ((ILoopActionUsage)null).ComputeBodyAction()); + Assert.That(() => ((ILoopActionUsage)null).ComputeBodyAction(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/MembershipExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/MembershipExtensionsTestFixture.cs index 73c3f25f..c10bcf6a 100644 --- a/SysML2.NET.Tests/Extend/MembershipExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/MembershipExtensionsTestFixture.cs @@ -32,13 +32,13 @@ public class MembershipExtensionsTestFixture [Test] public void ComputeMemberElementId_ThrowsNotSupportedException() { - Assert.Throws(() => ((IMembership)null).ComputeMemberElementId()); + Assert.That(() => ((IMembership)null).ComputeMemberElementId(), Throws.TypeOf()); } [Test] public void ComputeMembershipOwningNamespace_ThrowsNotSupportedException() { - Assert.Throws(() => ((IMembership)null).ComputeMembershipOwningNamespace()); + Assert.That(() => ((IMembership)null).ComputeMembershipOwningNamespace(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/MetadataAccessExpressionExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/MetadataAccessExpressionExtensionsTestFixture.cs index afe33a21..97af60a2 100644 --- a/SysML2.NET.Tests/Extend/MetadataAccessExpressionExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/MetadataAccessExpressionExtensionsTestFixture.cs @@ -32,7 +32,7 @@ public class MetadataAccessExpressionExtensionsTestFixture [Test] public void ComputeReferencedElement_ThrowsNotSupportedException() { - Assert.Throws(() => ((IMetadataAccessExpression)null).ComputeReferencedElement()); + Assert.That(() => ((IMetadataAccessExpression)null).ComputeReferencedElement(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/MetadataFeatureExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/MetadataFeatureExtensionsTestFixture.cs index 92c251f7..6223faab 100644 --- a/SysML2.NET.Tests/Extend/MetadataFeatureExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/MetadataFeatureExtensionsTestFixture.cs @@ -32,7 +32,7 @@ public class MetadataFeatureExtensionsTestFixture [Test] public void ComputeMetaclass_ThrowsNotSupportedException() { - Assert.Throws(() => ((IMetadataFeature)null).ComputeMetaclass()); + Assert.That(() => ((IMetadataFeature)null).ComputeMetaclass(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/MetadataUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/MetadataUsageExtensionsTestFixture.cs index 8a754741..75dbb4fa 100644 --- a/SysML2.NET.Tests/Extend/MetadataUsageExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/MetadataUsageExtensionsTestFixture.cs @@ -32,7 +32,7 @@ public class MetadataUsageExtensionsTestFixture [Test] public void ComputeMetadataDefinition_ThrowsNotSupportedException() { - Assert.Throws(() => ((IMetadataUsage)null).ComputeMetadataDefinition()); + Assert.That(() => ((IMetadataUsage)null).ComputeMetadataDefinition(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/MultiplicityRangeExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/MultiplicityRangeExtensionsTestFixture.cs index fc6747b4..01b99270 100644 --- a/SysML2.NET.Tests/Extend/MultiplicityRangeExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/MultiplicityRangeExtensionsTestFixture.cs @@ -32,19 +32,19 @@ public class MultiplicityRangeExtensionsTestFixture [Test] public void ComputeBound_ThrowsNotSupportedException() { - Assert.Throws(() => ((IMultiplicityRange)null).ComputeBound()); + Assert.That(() => ((IMultiplicityRange)null).ComputeBound(), Throws.TypeOf()); } [Test] public void ComputeLowerBound_ThrowsNotSupportedException() { - Assert.Throws(() => ((IMultiplicityRange)null).ComputeLowerBound()); + Assert.That(() => ((IMultiplicityRange)null).ComputeLowerBound(), Throws.TypeOf()); } [Test] public void ComputeUpperBound_ThrowsNotSupportedException() { - Assert.Throws(() => ((IMultiplicityRange)null).ComputeUpperBound()); + Assert.That(() => ((IMultiplicityRange)null).ComputeUpperBound(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/ObjectiveMembershipExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ObjectiveMembershipExtensionsTestFixture.cs index 61c91375..cc308bcf 100644 --- a/SysML2.NET.Tests/Extend/ObjectiveMembershipExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/ObjectiveMembershipExtensionsTestFixture.cs @@ -32,7 +32,7 @@ public class ObjectiveMembershipExtensionsTestFixture [Test] public void ComputeOwnedObjectiveRequirement_ThrowsNotSupportedException() { - Assert.Throws(() => ((IObjectiveMembership)null).ComputeOwnedObjectiveRequirement()); + Assert.That(() => ((IObjectiveMembership)null).ComputeOwnedObjectiveRequirement(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/OccurrenceUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/OccurrenceUsageExtensionsTestFixture.cs index 38218a38..1c853bc8 100644 --- a/SysML2.NET.Tests/Extend/OccurrenceUsageExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/OccurrenceUsageExtensionsTestFixture.cs @@ -32,13 +32,13 @@ public class OccurrenceUsageExtensionsTestFixture [Test] public void ComputeIndividualDefinition_ThrowsNotSupportedException() { - Assert.Throws(() => ((IOccurrenceUsage)null).ComputeIndividualDefinition()); + Assert.That(() => ((IOccurrenceUsage)null).ComputeIndividualDefinition(), Throws.TypeOf()); } [Test] public void ComputeOccurrenceDefinition_ThrowsNotSupportedException() { - Assert.Throws(() => ((IOccurrenceUsage)null).ComputeOccurrenceDefinition()); + Assert.That(() => ((IOccurrenceUsage)null).ComputeOccurrenceDefinition(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/OwningMembershipExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/OwningMembershipExtensionsTestFixture.cs index a8f71a80..4cc689cb 100644 --- a/SysML2.NET.Tests/Extend/OwningMembershipExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/OwningMembershipExtensionsTestFixture.cs @@ -32,25 +32,25 @@ public class OwningMembershipExtensionsTestFixture [Test] public void ComputeOwnedMemberElement_ThrowsNotSupportedException() { - Assert.Throws(() => ((IOwningMembership)null).ComputeOwnedMemberElement()); + Assert.That(() => ((IOwningMembership)null).ComputeOwnedMemberElement(), Throws.TypeOf()); } [Test] public void ComputeOwnedMemberElementId_ThrowsNotSupportedException() { - Assert.Throws(() => ((IOwningMembership)null).ComputeOwnedMemberElementId()); + Assert.That(() => ((IOwningMembership)null).ComputeOwnedMemberElementId(), Throws.TypeOf()); } [Test] public void ComputeOwnedMemberName_ThrowsNotSupportedException() { - Assert.Throws(() => ((IOwningMembership)null).ComputeOwnedMemberName()); + Assert.That(() => ((IOwningMembership)null).ComputeOwnedMemberName(), Throws.TypeOf()); } [Test] public void ComputeOwnedMemberShortName_ThrowsNotSupportedException() { - Assert.Throws(() => ((IOwningMembership)null).ComputeOwnedMemberShortName()); + Assert.That(() => ((IOwningMembership)null).ComputeOwnedMemberShortName(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/PackageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/PackageExtensionsTestFixture.cs index 9aa5101b..e9f5c68f 100644 --- a/SysML2.NET.Tests/Extend/PackageExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/PackageExtensionsTestFixture.cs @@ -32,7 +32,7 @@ public class PackageExtensionsTestFixture [Test] public void ComputeFilterCondition_ThrowsNotSupportedException() { - Assert.Throws(() => ((IPackage)null).ComputeFilterCondition()); + Assert.That(() => ((IPackage)null).ComputeFilterCondition(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/ParameterMembershipExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ParameterMembershipExtensionsTestFixture.cs index a852d8d2..c35b71c7 100644 --- a/SysML2.NET.Tests/Extend/ParameterMembershipExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/ParameterMembershipExtensionsTestFixture.cs @@ -32,7 +32,7 @@ public class ParameterMembershipExtensionsTestFixture [Test] public void ComputeOwnedMemberParameter_ThrowsNotSupportedException() { - Assert.Throws(() => ((IParameterMembership)null).ComputeOwnedMemberParameter()); + Assert.That(() => ((IParameterMembership)null).ComputeOwnedMemberParameter(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/PartUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/PartUsageExtensionsTestFixture.cs index 69d3be3a..1affb119 100644 --- a/SysML2.NET.Tests/Extend/PartUsageExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/PartUsageExtensionsTestFixture.cs @@ -32,7 +32,7 @@ public class PartUsageExtensionsTestFixture [Test] public void ComputePartDefinition_ThrowsNotSupportedException() { - Assert.Throws(() => ((IPartUsage)null).ComputePartDefinition()); + Assert.That(() => ((IPartUsage)null).ComputePartDefinition(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/PerformActionUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/PerformActionUsageExtensionsTestFixture.cs index 311b93bf..49e6706c 100644 --- a/SysML2.NET.Tests/Extend/PerformActionUsageExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/PerformActionUsageExtensionsTestFixture.cs @@ -32,7 +32,7 @@ public class PerformActionUsageExtensionsTestFixture [Test] public void ComputePerformedAction_ThrowsNotSupportedException() { - Assert.Throws(() => ((IPerformActionUsage)null).ComputePerformedAction()); + Assert.That(() => ((IPerformActionUsage)null).ComputePerformedAction(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/PortConjugationExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/PortConjugationExtensionsTestFixture.cs index 227aa5d6..ec5b5d9f 100644 --- a/SysML2.NET.Tests/Extend/PortConjugationExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/PortConjugationExtensionsTestFixture.cs @@ -32,7 +32,7 @@ public class PortConjugationExtensionsTestFixture [Test] public void ComputeConjugatedPortDefinition_ThrowsNotSupportedException() { - Assert.Throws(() => ((IPortConjugation)null).ComputeConjugatedPortDefinition()); + Assert.That(() => ((IPortConjugation)null).ComputeConjugatedPortDefinition(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/PortDefinitionExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/PortDefinitionExtensionsTestFixture.cs index 628f22b5..44f83415 100644 --- a/SysML2.NET.Tests/Extend/PortDefinitionExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/PortDefinitionExtensionsTestFixture.cs @@ -32,7 +32,7 @@ public class PortDefinitionExtensionsTestFixture [Test] public void ComputeConjugatedPortDefinition_ThrowsNotSupportedException() { - Assert.Throws(() => ((IPortDefinition)null).ComputeConjugatedPortDefinition()); + Assert.That(() => ((IPortDefinition)null).ComputeConjugatedPortDefinition(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/PortUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/PortUsageExtensionsTestFixture.cs index 66102cf3..81176c41 100644 --- a/SysML2.NET.Tests/Extend/PortUsageExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/PortUsageExtensionsTestFixture.cs @@ -32,7 +32,7 @@ public class PortUsageExtensionsTestFixture [Test] public void ComputePortDefinition_ThrowsNotSupportedException() { - Assert.Throws(() => ((IPortUsage)null).ComputePortDefinition()); + Assert.That(() => ((IPortUsage)null).ComputePortDefinition(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/ReferenceSubsettingExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ReferenceSubsettingExtensionsTestFixture.cs index aaffc617..feef80d3 100644 --- a/SysML2.NET.Tests/Extend/ReferenceSubsettingExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/ReferenceSubsettingExtensionsTestFixture.cs @@ -32,7 +32,7 @@ public class ReferenceSubsettingExtensionsTestFixture [Test] public void ComputeReferencingFeature_ThrowsNotSupportedException() { - Assert.Throws(() => ((IReferenceSubsetting)null).ComputeReferencingFeature()); + Assert.That(() => ((IReferenceSubsetting)null).ComputeReferencingFeature(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/ReferenceUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ReferenceUsageExtensionsTestFixture.cs index b4078ad5..0dabebb5 100644 --- a/SysML2.NET.Tests/Extend/ReferenceUsageExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/ReferenceUsageExtensionsTestFixture.cs @@ -32,7 +32,7 @@ public class ReferenceUsageExtensionsTestFixture [Test] public void ComputeIsReference_ThrowsNotSupportedException() { - Assert.Throws(() => ((IReferenceUsage)null).ComputeIsReference()); + Assert.That(() => ((IReferenceUsage)null).ComputeIsReference(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/RelationshipExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/RelationshipExtensionsTestFixture.cs index 2887f468..9ce60a32 100644 --- a/SysML2.NET.Tests/Extend/RelationshipExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/RelationshipExtensionsTestFixture.cs @@ -32,7 +32,7 @@ public class RelationshipExtensionsTestFixture [Test] public void ComputeRelatedElement_ThrowsNotSupportedException() { - Assert.Throws(() => ((IRelationship)null).ComputeRelatedElement()); + Assert.That(() => ((IRelationship)null).ComputeRelatedElement(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/RenderingDefinitionExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/RenderingDefinitionExtensionsTestFixture.cs index 6684c890..dba4cacc 100644 --- a/SysML2.NET.Tests/Extend/RenderingDefinitionExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/RenderingDefinitionExtensionsTestFixture.cs @@ -32,7 +32,7 @@ public class RenderingDefinitionExtensionsTestFixture [Test] public void ComputeRendering_ThrowsNotSupportedException() { - Assert.Throws(() => ((IRenderingDefinition)null).ComputeRendering()); + Assert.That(() => ((IRenderingDefinition)null).ComputeRendering(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/RenderingUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/RenderingUsageExtensionsTestFixture.cs index 4fb398ca..08c0a25c 100644 --- a/SysML2.NET.Tests/Extend/RenderingUsageExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/RenderingUsageExtensionsTestFixture.cs @@ -32,7 +32,7 @@ public class RenderingUsageExtensionsTestFixture [Test] public void ComputeRenderingDefinition_ThrowsNotSupportedException() { - Assert.Throws(() => ((IRenderingUsage)null).ComputeRenderingDefinition()); + Assert.That(() => ((IRenderingUsage)null).ComputeRenderingDefinition(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/RequirementConstraintMembershipExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/RequirementConstraintMembershipExtensionsTestFixture.cs index 9b43ab3f..bd876035 100644 --- a/SysML2.NET.Tests/Extend/RequirementConstraintMembershipExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/RequirementConstraintMembershipExtensionsTestFixture.cs @@ -32,13 +32,13 @@ public class RequirementConstraintMembershipExtensionsTestFixture [Test] public void ComputeOwnedConstraint_ThrowsNotSupportedException() { - Assert.Throws(() => ((IRequirementConstraintMembership)null).ComputeOwnedConstraint()); + Assert.That(() => ((IRequirementConstraintMembership)null).ComputeOwnedConstraint(), Throws.TypeOf()); } [Test] public void ComputeReferencedConstraint_ThrowsNotSupportedException() { - Assert.Throws(() => ((IRequirementConstraintMembership)null).ComputeReferencedConstraint()); + Assert.That(() => ((IRequirementConstraintMembership)null).ComputeReferencedConstraint(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/RequirementDefinitionExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/RequirementDefinitionExtensionsTestFixture.cs index 90f1066b..bb6e6cd9 100644 --- a/SysML2.NET.Tests/Extend/RequirementDefinitionExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/RequirementDefinitionExtensionsTestFixture.cs @@ -32,42 +32,42 @@ public class RequirementDefinitionExtensionsTestFixture [Test] public void ComputeActorParameter_ThrowsNotSupportedException() { - Assert.Throws(() => ((IRequirementDefinition)null).ComputeActorParameter()); + Assert.That(() => ((IRequirementDefinition)null).ComputeActorParameter(), Throws.TypeOf()); } [Test] public void ComputeAssumedConstraint_ThrowsNotSupportedException() { - Assert.Throws(() => ((IRequirementDefinition)null).ComputeAssumedConstraint()); + Assert.That(() => ((IRequirementDefinition)null).ComputeAssumedConstraint(), Throws.TypeOf()); } [Test] public void ComputeFramedConcern_ThrowsNotSupportedException() { - Assert.Throws(() => ((IRequirementDefinition)null).ComputeFramedConcern()); + Assert.That(() => ((IRequirementDefinition)null).ComputeFramedConcern(), Throws.TypeOf()); } [Test] public void ComputeRequiredConstraint_ThrowsNotSupportedException() { - Assert.Throws(() => ((IRequirementDefinition)null).ComputeRequiredConstraint()); + Assert.That(() => ((IRequirementDefinition)null).ComputeRequiredConstraint(), Throws.TypeOf()); } [Test] public void ComputeStakeholderParameter_ThrowsNotSupportedException() { - Assert.Throws(() => ((IRequirementDefinition)null).ComputeStakeholderParameter()); + Assert.That(() => ((IRequirementDefinition)null).ComputeStakeholderParameter(), Throws.TypeOf()); } [Test] public void ComputeSubjectParameter_ThrowsNotSupportedException() { - Assert.Throws(() => ((IRequirementDefinition)null).ComputeSubjectParameter()); + Assert.That(() => ((IRequirementDefinition)null).ComputeSubjectParameter(), Throws.TypeOf()); } [Test] public void ComputeText_ThrowsNotSupportedException() { - Assert.Throws(() => ((IRequirementDefinition)null).ComputeText()); + Assert.That(() => ((IRequirementDefinition)null).ComputeText(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/RequirementUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/RequirementUsageExtensionsTestFixture.cs index 6495c4c1..a8c4db7a 100644 --- a/SysML2.NET.Tests/Extend/RequirementUsageExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/RequirementUsageExtensionsTestFixture.cs @@ -32,49 +32,49 @@ public class RequirementUsageExtensionsTestFixture [Test] public void ComputeActorParameter_ThrowsNotSupportedException() { - Assert.Throws(() => ((IRequirementUsage)null).ComputeActorParameter()); + Assert.That(() => ((IRequirementUsage)null).ComputeActorParameter(), Throws.TypeOf()); } [Test] public void ComputeAssumedConstraint_ThrowsNotSupportedException() { - Assert.Throws(() => ((IRequirementUsage)null).ComputeAssumedConstraint()); + Assert.That(() => ((IRequirementUsage)null).ComputeAssumedConstraint(), Throws.TypeOf()); } [Test] public void ComputeFramedConcern_ThrowsNotSupportedException() { - Assert.Throws(() => ((IRequirementUsage)null).ComputeFramedConcern()); + Assert.That(() => ((IRequirementUsage)null).ComputeFramedConcern(), Throws.TypeOf()); } [Test] public void ComputeRequiredConstraint_ThrowsNotSupportedException() { - Assert.Throws(() => ((IRequirementUsage)null).ComputeRequiredConstraint()); + Assert.That(() => ((IRequirementUsage)null).ComputeRequiredConstraint(), Throws.TypeOf()); } [Test] public void ComputeRequirementDefinition_ThrowsNotSupportedException() { - Assert.Throws(() => ((IRequirementUsage)null).ComputeRequirementDefinition()); + Assert.That(() => ((IRequirementUsage)null).ComputeRequirementDefinition(), Throws.TypeOf()); } [Test] public void ComputeStakeholderParameter_ThrowsNotSupportedException() { - Assert.Throws(() => ((IRequirementUsage)null).ComputeStakeholderParameter()); + Assert.That(() => ((IRequirementUsage)null).ComputeStakeholderParameter(), Throws.TypeOf()); } [Test] public void ComputeSubjectParameter_ThrowsNotSupportedException() { - Assert.Throws(() => ((IRequirementUsage)null).ComputeSubjectParameter()); + Assert.That(() => ((IRequirementUsage)null).ComputeSubjectParameter(), Throws.TypeOf()); } [Test] public void ComputeText_ThrowsNotSupportedException() { - Assert.Throws(() => ((IRequirementUsage)null).ComputeText()); + Assert.That(() => ((IRequirementUsage)null).ComputeText(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/RequirementVerificationMembershipExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/RequirementVerificationMembershipExtensionsTestFixture.cs index 7a0d53b3..b691b212 100644 --- a/SysML2.NET.Tests/Extend/RequirementVerificationMembershipExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/RequirementVerificationMembershipExtensionsTestFixture.cs @@ -32,13 +32,13 @@ public class RequirementVerificationMembershipExtensionsTestFixture [Test] public void ComputeOwnedRequirement_ThrowsNotSupportedException() { - Assert.Throws(() => ((IRequirementVerificationMembership)null).ComputeOwnedRequirement()); + Assert.That(() => ((IRequirementVerificationMembership)null).ComputeOwnedRequirement(), Throws.TypeOf()); } [Test] public void ComputeVerifiedRequirement_ThrowsNotSupportedException() { - Assert.Throws(() => ((IRequirementVerificationMembership)null).ComputeVerifiedRequirement()); + Assert.That(() => ((IRequirementVerificationMembership)null).ComputeVerifiedRequirement(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/ResultExpressionMembershipExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ResultExpressionMembershipExtensionsTestFixture.cs index 17c96cf9..035182f2 100644 --- a/SysML2.NET.Tests/Extend/ResultExpressionMembershipExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/ResultExpressionMembershipExtensionsTestFixture.cs @@ -32,7 +32,7 @@ public class ResultExpressionMembershipExtensionsTestFixture [Test] public void ComputeOwnedResultExpression_ThrowsNotSupportedException() { - Assert.Throws(() => ((IResultExpressionMembership)null).ComputeOwnedResultExpression()); + Assert.That(() => ((IResultExpressionMembership)null).ComputeOwnedResultExpression(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/SatisfyRequirementUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/SatisfyRequirementUsageExtensionsTestFixture.cs index 7bbd2f55..506fc4b3 100644 --- a/SysML2.NET.Tests/Extend/SatisfyRequirementUsageExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/SatisfyRequirementUsageExtensionsTestFixture.cs @@ -32,12 +32,12 @@ public class SatisfyRequirementUsageExtensionsTestFixture [Test] public void ComputeSatisfiedRequirement_ThrowsNotSupportedException() { - Assert.Throws(() => ((ISatisfyRequirementUsage)null).ComputeSatisfiedRequirement()); + Assert.That(() => ((ISatisfyRequirementUsage)null).ComputeSatisfiedRequirement(), Throws.TypeOf()); } [Test] public void ComputeSatisfyingFeature_ThrowsNotSupportedException() { - Assert.Throws(() => ((ISatisfyRequirementUsage)null).ComputeSatisfyingFeature()); + Assert.That(() => ((ISatisfyRequirementUsage)null).ComputeSatisfyingFeature(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/SendActionUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/SendActionUsageExtensionsTestFixture.cs index e827c974..f39d61bf 100644 --- a/SysML2.NET.Tests/Extend/SendActionUsageExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/SendActionUsageExtensionsTestFixture.cs @@ -32,19 +32,19 @@ public class SendActionUsageExtensionsTestFixture [Test] public void ComputePayloadArgument_ThrowsNotSupportedException() { - Assert.Throws(() => ((ISendActionUsage)null).ComputePayloadArgument()); + Assert.That(() => ((ISendActionUsage)null).ComputePayloadArgument(), Throws.TypeOf()); } [Test] public void ComputeReceiverArgument_ThrowsNotSupportedException() { - Assert.Throws(() => ((ISendActionUsage)null).ComputeReceiverArgument()); + Assert.That(() => ((ISendActionUsage)null).ComputeReceiverArgument(), Throws.TypeOf()); } [Test] public void ComputeSenderArgument_ThrowsNotSupportedException() { - Assert.Throws(() => ((ISendActionUsage)null).ComputeSenderArgument()); + Assert.That(() => ((ISendActionUsage)null).ComputeSenderArgument(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/SpecializationExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/SpecializationExtensionsTestFixture.cs index ca1cf51a..69c7280c 100644 --- a/SysML2.NET.Tests/Extend/SpecializationExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/SpecializationExtensionsTestFixture.cs @@ -32,7 +32,7 @@ public class SpecializationExtensionsTestFixture [Test] public void ComputeOwningType_ThrowsNotSupportedException() { - Assert.Throws(() => ((ISpecialization)null).ComputeOwningType()); + Assert.That(() => ((ISpecialization)null).ComputeOwningType(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/StakeholderMembershipExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/StakeholderMembershipExtensionsTestFixture.cs index 90b0b52c..50dd4366 100644 --- a/SysML2.NET.Tests/Extend/StakeholderMembershipExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/StakeholderMembershipExtensionsTestFixture.cs @@ -32,7 +32,7 @@ public class StakeholderMembershipExtensionsTestFixture [Test] public void ComputeOwnedStakeholderParameter_ThrowsNotSupportedException() { - Assert.Throws(() => ((IStakeholderMembership)null).ComputeOwnedStakeholderParameter()); + Assert.That(() => ((IStakeholderMembership)null).ComputeOwnedStakeholderParameter(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/StateDefinitionExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/StateDefinitionExtensionsTestFixture.cs index b51404bd..fd8e08ea 100644 --- a/SysML2.NET.Tests/Extend/StateDefinitionExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/StateDefinitionExtensionsTestFixture.cs @@ -32,25 +32,25 @@ public class StateDefinitionExtensionsTestFixture [Test] public void ComputeDoAction_ThrowsNotSupportedException() { - Assert.Throws(() => ((IStateDefinition)null).ComputeDoAction()); + Assert.That(() => ((IStateDefinition)null).ComputeDoAction(), Throws.TypeOf()); } [Test] public void ComputeEntryAction_ThrowsNotSupportedException() { - Assert.Throws(() => ((IStateDefinition)null).ComputeEntryAction()); + Assert.That(() => ((IStateDefinition)null).ComputeEntryAction(), Throws.TypeOf()); } [Test] public void ComputeExitAction_ThrowsNotSupportedException() { - Assert.Throws(() => ((IStateDefinition)null).ComputeExitAction()); + Assert.That(() => ((IStateDefinition)null).ComputeExitAction(), Throws.TypeOf()); } [Test] public void ComputeState_ThrowsNotSupportedException() { - Assert.Throws(() => ((IStateDefinition)null).ComputeState()); + Assert.That(() => ((IStateDefinition)null).ComputeState(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/StateSubactionMembershipExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/StateSubactionMembershipExtensionsTestFixture.cs index 5492cc4e..9eb5bdb3 100644 --- a/SysML2.NET.Tests/Extend/StateSubactionMembershipExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/StateSubactionMembershipExtensionsTestFixture.cs @@ -32,7 +32,7 @@ public class StateSubactionMembershipExtensionsTestFixture [Test] public void ComputeAction_ThrowsNotSupportedException() { - Assert.Throws(() => ((IStateSubactionMembership)null).ComputeAction()); + Assert.That(() => ((IStateSubactionMembership)null).ComputeAction(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/StateUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/StateUsageExtensionsTestFixture.cs index fed4d4a2..d064123c 100644 --- a/SysML2.NET.Tests/Extend/StateUsageExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/StateUsageExtensionsTestFixture.cs @@ -32,25 +32,25 @@ public class StateUsageExtensionsTestFixture [Test] public void ComputeDoAction_ThrowsNotSupportedException() { - Assert.Throws(() => ((IStateUsage)null).ComputeDoAction()); + Assert.That(() => ((IStateUsage)null).ComputeDoAction(), Throws.TypeOf()); } [Test] public void ComputeEntryAction_ThrowsNotSupportedException() { - Assert.Throws(() => ((IStateUsage)null).ComputeEntryAction()); + Assert.That(() => ((IStateUsage)null).ComputeEntryAction(), Throws.TypeOf()); } [Test] public void ComputeExitAction_ThrowsNotSupportedException() { - Assert.Throws(() => ((IStateUsage)null).ComputeExitAction()); + Assert.That(() => ((IStateUsage)null).ComputeExitAction(), Throws.TypeOf()); } [Test] public void ComputeStateDefinition_ThrowsNotSupportedException() { - Assert.Throws(() => ((IStateUsage)null).ComputeStateDefinition()); + Assert.That(() => ((IStateUsage)null).ComputeStateDefinition(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/StepExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/StepExtensionsTestFixture.cs index 61767af8..0a152e47 100644 --- a/SysML2.NET.Tests/Extend/StepExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/StepExtensionsTestFixture.cs @@ -32,13 +32,13 @@ public class StepExtensionsTestFixture [Test] public void ComputeBehavior_ThrowsNotSupportedException() { - Assert.Throws(() => ((IStep)null).ComputeBehavior()); + Assert.That(() => ((IStep)null).ComputeBehavior(), Throws.TypeOf()); } [Test] public void ComputeParameter_ThrowsNotSupportedException() { - Assert.Throws(() => ((IStep)null).ComputeParameter()); + Assert.That(() => ((IStep)null).ComputeParameter(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/SubclassificationExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/SubclassificationExtensionsTestFixture.cs index f9099620..09a428db 100644 --- a/SysML2.NET.Tests/Extend/SubclassificationExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/SubclassificationExtensionsTestFixture.cs @@ -32,7 +32,7 @@ public class SubclassificationExtensionsTestFixture [Test] public void ComputeOwningClassifier_ThrowsNotSupportedException() { - Assert.Throws(() => ((ISubclassification)null).ComputeOwningClassifier()); + Assert.That(() => ((ISubclassification)null).ComputeOwningClassifier(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/SubjectMembershipExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/SubjectMembershipExtensionsTestFixture.cs index 6d938d0a..8400a27a 100644 --- a/SysML2.NET.Tests/Extend/SubjectMembershipExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/SubjectMembershipExtensionsTestFixture.cs @@ -32,7 +32,7 @@ public class SubjectMembershipExtensionsTestFixture [Test] public void ComputeOwnedSubjectParameter_ThrowsNotSupportedException() { - Assert.Throws(() => ((ISubjectMembership)null).ComputeOwnedSubjectParameter()); + Assert.That(() => ((ISubjectMembership)null).ComputeOwnedSubjectParameter(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/SubsettingExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/SubsettingExtensionsTestFixture.cs index 747b3573..140fd5a0 100644 --- a/SysML2.NET.Tests/Extend/SubsettingExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/SubsettingExtensionsTestFixture.cs @@ -32,7 +32,7 @@ public class SubsettingExtensionsTestFixture [Test] public void ComputeOwningFeature_ThrowsNotSupportedException() { - Assert.Throws(() => ((ISubsetting)null).ComputeOwningFeature()); + Assert.That(() => ((ISubsetting)null).ComputeOwningFeature(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/TerminateActionUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/TerminateActionUsageExtensionsTestFixture.cs index b46eefc5..547e5dd2 100644 --- a/SysML2.NET.Tests/Extend/TerminateActionUsageExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/TerminateActionUsageExtensionsTestFixture.cs @@ -32,7 +32,7 @@ public class TerminateActionUsageExtensionsTestFixture [Test] public void ComputeTerminatedOccurrenceArgument_ThrowsNotSupportedException() { - Assert.Throws(() => ((ITerminateActionUsage)null).ComputeTerminatedOccurrenceArgument()); + Assert.That(() => ((ITerminateActionUsage)null).ComputeTerminatedOccurrenceArgument(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/TextualRepresentationExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/TextualRepresentationExtensionsTestFixture.cs index d13b4c1c..3ad1b7d9 100644 --- a/SysML2.NET.Tests/Extend/TextualRepresentationExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/TextualRepresentationExtensionsTestFixture.cs @@ -32,7 +32,7 @@ public class TextualRepresentationExtensionsTestFixture [Test] public void ComputeRepresentedElement_ThrowsNotSupportedException() { - Assert.Throws(() => ((ITextualRepresentation)null).ComputeRepresentedElement()); + Assert.That(() => ((ITextualRepresentation)null).ComputeRepresentedElement(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/TransitionFeatureMembershipExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/TransitionFeatureMembershipExtensionsTestFixture.cs index 3fd823bb..eff5ebde 100644 --- a/SysML2.NET.Tests/Extend/TransitionFeatureMembershipExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/TransitionFeatureMembershipExtensionsTestFixture.cs @@ -32,7 +32,7 @@ public class TransitionFeatureMembershipExtensionsTestFixture [Test] public void ComputeTransitionFeature_ThrowsNotSupportedException() { - Assert.Throws(() => ((ITransitionFeatureMembership)null).ComputeTransitionFeature()); + Assert.That(() => ((ITransitionFeatureMembership)null).ComputeTransitionFeature(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/TransitionUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/TransitionUsageExtensionsTestFixture.cs index 8741e55f..3fa722aa 100644 --- a/SysML2.NET.Tests/Extend/TransitionUsageExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/TransitionUsageExtensionsTestFixture.cs @@ -32,37 +32,37 @@ public class TransitionUsageExtensionsTestFixture [Test] public void ComputeEffectAction_ThrowsNotSupportedException() { - Assert.Throws(() => ((ITransitionUsage)null).ComputeEffectAction()); + Assert.That(() => ((ITransitionUsage)null).ComputeEffectAction(), Throws.TypeOf()); } [Test] public void ComputeGuardExpression_ThrowsNotSupportedException() { - Assert.Throws(() => ((ITransitionUsage)null).ComputeGuardExpression()); + Assert.That(() => ((ITransitionUsage)null).ComputeGuardExpression(), Throws.TypeOf()); } [Test] public void ComputeSource_ThrowsNotSupportedException() { - Assert.Throws(() => ((ITransitionUsage)null).ComputeSource()); + Assert.That(() => ((ITransitionUsage)null).ComputeSource(), Throws.TypeOf()); } [Test] public void ComputeSuccession_ThrowsNotSupportedException() { - Assert.Throws(() => ((ITransitionUsage)null).ComputeSuccession()); + Assert.That(() => ((ITransitionUsage)null).ComputeSuccession(), Throws.TypeOf()); } [Test] public void ComputeTarget_ThrowsNotSupportedException() { - Assert.Throws(() => ((ITransitionUsage)null).ComputeTarget()); + Assert.That(() => ((ITransitionUsage)null).ComputeTarget(), Throws.TypeOf()); } [Test] public void ComputeTriggerAction_ThrowsNotSupportedException() { - Assert.Throws(() => ((ITransitionUsage)null).ComputeTriggerAction()); + Assert.That(() => ((ITransitionUsage)null).ComputeTriggerAction(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/TypeExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/TypeExtensionsTestFixture.cs index cf261e4f..bccf6ef1 100644 --- a/SysML2.NET.Tests/Extend/TypeExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/TypeExtensionsTestFixture.cs @@ -32,133 +32,133 @@ public class TypeExtensionsTestFixture [Test] public void ComputeDifferencingType_ThrowsNotSupportedException() { - Assert.Throws(() => ((IType)null).ComputeDifferencingType()); + Assert.That(() => ((IType)null).ComputeDifferencingType(), Throws.TypeOf()); } [Test] public void ComputeDirectedFeature_ThrowsNotSupportedException() { - Assert.Throws(() => ((IType)null).ComputeDirectedFeature()); + Assert.That(() => ((IType)null).ComputeDirectedFeature(), Throws.TypeOf()); } [Test] public void ComputeEndFeature_ThrowsNotSupportedException() { - Assert.Throws(() => ((IType)null).ComputeEndFeature()); + Assert.That(() => ((IType)null).ComputeEndFeature(), Throws.TypeOf()); } [Test] public void ComputeFeature_ThrowsNotSupportedException() { - Assert.Throws(() => ((IType)null).ComputeFeature()); + Assert.That(() => ((IType)null).ComputeFeature(), Throws.TypeOf()); } [Test] public void ComputeFeatureMembership_ThrowsNotSupportedException() { - Assert.Throws(() => ((IType)null).ComputeFeatureMembership()); + Assert.That(() => ((IType)null).ComputeFeatureMembership(), Throws.TypeOf()); } [Test] public void ComputeInheritedFeature_ThrowsNotSupportedException() { - Assert.Throws(() => ((IType)null).ComputeInheritedFeature()); + Assert.That(() => ((IType)null).ComputeInheritedFeature(), Throws.TypeOf()); } [Test] public void ComputeInheritedMembership_ThrowsNotSupportedException() { - Assert.Throws(() => ((IType)null).ComputeInheritedMembership()); + Assert.That(() => ((IType)null).ComputeInheritedMembership(), Throws.TypeOf()); } [Test] public void ComputeInput_ThrowsNotSupportedException() { - Assert.Throws(() => ((IType)null).ComputeInput()); + Assert.That(() => ((IType)null).ComputeInput(), Throws.TypeOf()); } [Test] public void ComputeIntersectingType_ThrowsNotSupportedException() { - Assert.Throws(() => ((IType)null).ComputeIntersectingType()); + Assert.That(() => ((IType)null).ComputeIntersectingType(), Throws.TypeOf()); } [Test] public void ComputeIsConjugated_ThrowsNotSupportedException() { - Assert.Throws(() => ((IType)null).ComputeIsConjugated()); + Assert.That(() => ((IType)null).ComputeIsConjugated(), Throws.TypeOf()); } [Test] public void ComputeMultiplicity_ThrowsNotSupportedException() { - Assert.Throws(() => ((IType)null).ComputeMultiplicity()); + Assert.That(() => ((IType)null).ComputeMultiplicity(), Throws.TypeOf()); } [Test] public void ComputeOutput_ThrowsNotSupportedException() { - Assert.Throws(() => ((IType)null).ComputeOutput()); + Assert.That(() => ((IType)null).ComputeOutput(), Throws.TypeOf()); } [Test] public void ComputeOwnedConjugator_ThrowsNotSupportedException() { - Assert.Throws(() => ((IType)null).ComputeOwnedConjugator()); + Assert.That(() => ((IType)null).ComputeOwnedConjugator(), Throws.TypeOf()); } [Test] public void ComputeOwnedDifferencing_ThrowsNotSupportedException() { - Assert.Throws(() => ((IType)null).ComputeOwnedDifferencing()); + Assert.That(() => ((IType)null).ComputeOwnedDifferencing(), Throws.TypeOf()); } [Test] public void ComputeOwnedDisjoining_ThrowsNotSupportedException() { - Assert.Throws(() => ((IType)null).ComputeOwnedDisjoining()); + Assert.That(() => ((IType)null).ComputeOwnedDisjoining(), Throws.TypeOf()); } [Test] public void ComputeOwnedEndFeature_ThrowsNotSupportedException() { - Assert.Throws(() => ((IType)null).ComputeOwnedEndFeature()); + Assert.That(() => ((IType)null).ComputeOwnedEndFeature(), Throws.TypeOf()); } [Test] public void ComputeOwnedFeature_ThrowsNotSupportedException() { - Assert.Throws(() => ((IType)null).ComputeOwnedFeature()); + Assert.That(() => ((IType)null).ComputeOwnedFeature(), Throws.TypeOf()); } [Test] public void ComputeOwnedFeatureMembership_ThrowsNotSupportedException() { - Assert.Throws(() => ((IType)null).ComputeOwnedFeatureMembership()); + Assert.That(() => ((IType)null).ComputeOwnedFeatureMembership(), Throws.TypeOf()); } [Test] public void ComputeOwnedIntersecting_ThrowsNotSupportedException() { - Assert.Throws(() => ((IType)null).ComputeOwnedIntersecting()); + Assert.That(() => ((IType)null).ComputeOwnedIntersecting(), Throws.TypeOf()); } [Test] public void ComputeOwnedSpecialization_ThrowsNotSupportedException() { - Assert.Throws(() => ((IType)null).ComputeOwnedSpecialization()); + Assert.That(() => ((IType)null).ComputeOwnedSpecialization(), Throws.TypeOf()); } [Test] public void ComputeOwnedUnioning_ThrowsNotSupportedException() { - Assert.Throws(() => ((IType)null).ComputeOwnedUnioning()); + Assert.That(() => ((IType)null).ComputeOwnedUnioning(), Throws.TypeOf()); } [Test] public void ComputeUnioningType_ThrowsNotSupportedException() { - Assert.Throws(() => ((IType)null).ComputeUnioningType()); + Assert.That(() => ((IType)null).ComputeUnioningType(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/TypeFeaturingExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/TypeFeaturingExtensionsTestFixture.cs index 60390fc3..df7d5e5b 100644 --- a/SysML2.NET.Tests/Extend/TypeFeaturingExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/TypeFeaturingExtensionsTestFixture.cs @@ -32,7 +32,7 @@ public class TypeFeaturingExtensionsTestFixture [Test] public void ComputeOwningFeatureOfType_ThrowsNotSupportedException() { - Assert.Throws(() => ((ITypeFeaturing)null).ComputeOwningFeatureOfType()); + Assert.That(() => ((ITypeFeaturing)null).ComputeOwningFeatureOfType(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/UnioningExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/UnioningExtensionsTestFixture.cs index 097e0edd..4e2ce3bd 100644 --- a/SysML2.NET.Tests/Extend/UnioningExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/UnioningExtensionsTestFixture.cs @@ -32,7 +32,7 @@ public class UnioningExtensionsTestFixture [Test] public void ComputeTypeUnioned_ThrowsNotSupportedException() { - Assert.Throws(() => ((IUnioning)null).ComputeTypeUnioned()); + Assert.That(() => ((IUnioning)null).ComputeTypeUnioned(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/UsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/UsageExtensionsTestFixture.cs index bab02848..ffbf1668 100644 --- a/SysML2.NET.Tests/Extend/UsageExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/UsageExtensionsTestFixture.cs @@ -32,217 +32,217 @@ public class UsageExtensionsTestFixture [Test] public void ComputeDefinition_ThrowsNotSupportedException() { - Assert.Throws(() => ((IUsage)null).ComputeDefinition()); + Assert.That(() => ((IUsage)null).ComputeDefinition(), Throws.TypeOf()); } [Test] public void ComputeDirectedUsage_ThrowsNotSupportedException() { - Assert.Throws(() => ((IUsage)null).ComputeDirectedUsage()); + Assert.That(() => ((IUsage)null).ComputeDirectedUsage(), Throws.TypeOf()); } [Test] public void ComputeIsReference_ThrowsNotSupportedException() { - Assert.Throws(() => ((IUsage)null).ComputeIsReference()); + Assert.That(() => ((IUsage)null).ComputeIsReference(), Throws.TypeOf()); } [Test] public void ComputeMayTimeVary_ThrowsNotSupportedException() { - Assert.Throws(() => ((IUsage)null).ComputeMayTimeVary()); + Assert.That(() => ((IUsage)null).ComputeMayTimeVary(), Throws.TypeOf()); } [Test] public void ComputeNestedAction_ThrowsNotSupportedException() { - Assert.Throws(() => ((IUsage)null).ComputeNestedAction()); + Assert.That(() => ((IUsage)null).ComputeNestedAction(), Throws.TypeOf()); } [Test] public void ComputeNestedAllocation_ThrowsNotSupportedException() { - Assert.Throws(() => ((IUsage)null).ComputeNestedAllocation()); + Assert.That(() => ((IUsage)null).ComputeNestedAllocation(), Throws.TypeOf()); } [Test] public void ComputeNestedAnalysisCase_ThrowsNotSupportedException() { - Assert.Throws(() => ((IUsage)null).ComputeNestedAnalysisCase()); + Assert.That(() => ((IUsage)null).ComputeNestedAnalysisCase(), Throws.TypeOf()); } [Test] public void ComputeNestedAttribute_ThrowsNotSupportedException() { - Assert.Throws(() => ((IUsage)null).ComputeNestedAttribute()); + Assert.That(() => ((IUsage)null).ComputeNestedAttribute(), Throws.TypeOf()); } [Test] public void ComputeNestedCalculation_ThrowsNotSupportedException() { - Assert.Throws(() => ((IUsage)null).ComputeNestedCalculation()); + Assert.That(() => ((IUsage)null).ComputeNestedCalculation(), Throws.TypeOf()); } [Test] public void ComputeNestedCase_ThrowsNotSupportedException() { - Assert.Throws(() => ((IUsage)null).ComputeNestedCase()); + Assert.That(() => ((IUsage)null).ComputeNestedCase(), Throws.TypeOf()); } [Test] public void ComputeNestedConcern_ThrowsNotSupportedException() { - Assert.Throws(() => ((IUsage)null).ComputeNestedConcern()); + Assert.That(() => ((IUsage)null).ComputeNestedConcern(), Throws.TypeOf()); } [Test] public void ComputeNestedConnection_ThrowsNotSupportedException() { - Assert.Throws(() => ((IUsage)null).ComputeNestedConnection()); + Assert.That(() => ((IUsage)null).ComputeNestedConnection(), Throws.TypeOf()); } [Test] public void ComputeNestedConstraint_ThrowsNotSupportedException() { - Assert.Throws(() => ((IUsage)null).ComputeNestedConstraint()); + Assert.That(() => ((IUsage)null).ComputeNestedConstraint(), Throws.TypeOf()); } [Test] public void ComputeNestedEnumeration_ThrowsNotSupportedException() { - Assert.Throws(() => ((IUsage)null).ComputeNestedEnumeration()); + Assert.That(() => ((IUsage)null).ComputeNestedEnumeration(), Throws.TypeOf()); } [Test] public void ComputeNestedFlow_ThrowsNotSupportedException() { - Assert.Throws(() => ((IUsage)null).ComputeNestedFlow()); + Assert.That(() => ((IUsage)null).ComputeNestedFlow(), Throws.TypeOf()); } [Test] public void ComputeNestedInterface_ThrowsNotSupportedException() { - Assert.Throws(() => ((IUsage)null).ComputeNestedInterface()); + Assert.That(() => ((IUsage)null).ComputeNestedInterface(), Throws.TypeOf()); } [Test] public void ComputeNestedItem_ThrowsNotSupportedException() { - Assert.Throws(() => ((IUsage)null).ComputeNestedItem()); + Assert.That(() => ((IUsage)null).ComputeNestedItem(), Throws.TypeOf()); } [Test] public void ComputeNestedMetadata_ThrowsNotSupportedException() { - Assert.Throws(() => ((IUsage)null).ComputeNestedMetadata()); + Assert.That(() => ((IUsage)null).ComputeNestedMetadata(), Throws.TypeOf()); } [Test] public void ComputeNestedOccurrence_ThrowsNotSupportedException() { - Assert.Throws(() => ((IUsage)null).ComputeNestedOccurrence()); + Assert.That(() => ((IUsage)null).ComputeNestedOccurrence(), Throws.TypeOf()); } [Test] public void ComputeNestedPart_ThrowsNotSupportedException() { - Assert.Throws(() => ((IUsage)null).ComputeNestedPart()); + Assert.That(() => ((IUsage)null).ComputeNestedPart(), Throws.TypeOf()); } [Test] public void ComputeNestedPort_ThrowsNotSupportedException() { - Assert.Throws(() => ((IUsage)null).ComputeNestedPort()); + Assert.That(() => ((IUsage)null).ComputeNestedPort(), Throws.TypeOf()); } [Test] public void ComputeNestedReference_ThrowsNotSupportedException() { - Assert.Throws(() => ((IUsage)null).ComputeNestedReference()); + Assert.That(() => ((IUsage)null).ComputeNestedReference(), Throws.TypeOf()); } [Test] public void ComputeNestedRendering_ThrowsNotSupportedException() { - Assert.Throws(() => ((IUsage)null).ComputeNestedRendering()); + Assert.That(() => ((IUsage)null).ComputeNestedRendering(), Throws.TypeOf()); } [Test] public void ComputeNestedRequirement_ThrowsNotSupportedException() { - Assert.Throws(() => ((IUsage)null).ComputeNestedRequirement()); + Assert.That(() => ((IUsage)null).ComputeNestedRequirement(), Throws.TypeOf()); } [Test] public void ComputeNestedState_ThrowsNotSupportedException() { - Assert.Throws(() => ((IUsage)null).ComputeNestedState()); + Assert.That(() => ((IUsage)null).ComputeNestedState(), Throws.TypeOf()); } [Test] public void ComputeNestedTransition_ThrowsNotSupportedException() { - Assert.Throws(() => ((IUsage)null).ComputeNestedTransition()); + Assert.That(() => ((IUsage)null).ComputeNestedTransition(), Throws.TypeOf()); } [Test] public void ComputeNestedUsage_ThrowsNotSupportedException() { - Assert.Throws(() => ((IUsage)null).ComputeNestedUsage()); + Assert.That(() => ((IUsage)null).ComputeNestedUsage(), Throws.TypeOf()); } [Test] public void ComputeNestedUseCase_ThrowsNotSupportedException() { - Assert.Throws(() => ((IUsage)null).ComputeNestedUseCase()); + Assert.That(() => ((IUsage)null).ComputeNestedUseCase(), Throws.TypeOf()); } [Test] public void ComputeNestedVerificationCase_ThrowsNotSupportedException() { - Assert.Throws(() => ((IUsage)null).ComputeNestedVerificationCase()); + Assert.That(() => ((IUsage)null).ComputeNestedVerificationCase(), Throws.TypeOf()); } [Test] public void ComputeNestedView_ThrowsNotSupportedException() { - Assert.Throws(() => ((IUsage)null).ComputeNestedView()); + Assert.That(() => ((IUsage)null).ComputeNestedView(), Throws.TypeOf()); } [Test] public void ComputeNestedViewpoint_ThrowsNotSupportedException() { - Assert.Throws(() => ((IUsage)null).ComputeNestedViewpoint()); + Assert.That(() => ((IUsage)null).ComputeNestedViewpoint(), Throws.TypeOf()); } [Test] public void ComputeOwningDefinition_ThrowsNotSupportedException() { - Assert.Throws(() => ((IUsage)null).ComputeOwningDefinition()); + Assert.That(() => ((IUsage)null).ComputeOwningDefinition(), Throws.TypeOf()); } [Test] public void ComputeOwningUsage_ThrowsNotSupportedException() { - Assert.Throws(() => ((IUsage)null).ComputeOwningUsage()); + Assert.That(() => ((IUsage)null).ComputeOwningUsage(), Throws.TypeOf()); } [Test] public void ComputeUsage_ThrowsNotSupportedException() { - Assert.Throws(() => ((IUsage)null).ComputeUsage()); + Assert.That(() => ((IUsage)null).ComputeUsage(), Throws.TypeOf()); } [Test] public void ComputeVariant_ThrowsNotSupportedException() { - Assert.Throws(() => ((IUsage)null).ComputeVariant()); + Assert.That(() => ((IUsage)null).ComputeVariant(), Throws.TypeOf()); } [Test] public void ComputeVariantMembership_ThrowsNotSupportedException() { - Assert.Throws(() => ((IUsage)null).ComputeVariantMembership()); + Assert.That(() => ((IUsage)null).ComputeVariantMembership(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/UseCaseDefinitionExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/UseCaseDefinitionExtensionsTestFixture.cs index c57561d1..58362494 100644 --- a/SysML2.NET.Tests/Extend/UseCaseDefinitionExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/UseCaseDefinitionExtensionsTestFixture.cs @@ -32,7 +32,7 @@ public class UseCaseDefinitionExtensionsTestFixture [Test] public void ComputeIncludedUseCase_ThrowsNotSupportedException() { - Assert.Throws(() => ((IUseCaseDefinition)null).ComputeIncludedUseCase()); + Assert.That(() => ((IUseCaseDefinition)null).ComputeIncludedUseCase(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/UseCaseUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/UseCaseUsageExtensionsTestFixture.cs index 7a99606c..7878c0aa 100644 --- a/SysML2.NET.Tests/Extend/UseCaseUsageExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/UseCaseUsageExtensionsTestFixture.cs @@ -32,12 +32,12 @@ public class UseCaseUsageExtensionsTestFixture [Test] public void ComputeIncludedUseCase_ThrowsNotSupportedException() { - Assert.Throws(() => ((IUseCaseUsage)null).ComputeIncludedUseCase()); + Assert.That(() => ((IUseCaseUsage)null).ComputeIncludedUseCase(), Throws.TypeOf()); } [Test] public void ComputeUseCaseDefinition_ThrowsNotSupportedException() { - Assert.Throws(() => ((IUseCaseUsage)null).ComputeUseCaseDefinition()); + Assert.That(() => ((IUseCaseUsage)null).ComputeUseCaseDefinition(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/VariantMembershipExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/VariantMembershipExtensionsTestFixture.cs index 36b92f68..1247901a 100644 --- a/SysML2.NET.Tests/Extend/VariantMembershipExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/VariantMembershipExtensionsTestFixture.cs @@ -32,7 +32,7 @@ public class VariantMembershipExtensionsTestFixture [Test] public void ComputeOwnedVariantUsage_ThrowsNotSupportedException() { - Assert.Throws(() => ((IVariantMembership)null).ComputeOwnedVariantUsage()); + Assert.That(() => ((IVariantMembership)null).ComputeOwnedVariantUsage(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/VerificationCaseDefinitionExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/VerificationCaseDefinitionExtensionsTestFixture.cs index bae16870..3a03998c 100644 --- a/SysML2.NET.Tests/Extend/VerificationCaseDefinitionExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/VerificationCaseDefinitionExtensionsTestFixture.cs @@ -32,7 +32,7 @@ public class VerificationCaseDefinitionExtensionsTestFixture [Test] public void ComputeVerifiedRequirement_ThrowsNotSupportedException() { - Assert.Throws(() => ((IVerificationCaseDefinition)null).ComputeVerifiedRequirement()); + Assert.That(() => ((IVerificationCaseDefinition)null).ComputeVerifiedRequirement(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/VerificationCaseUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/VerificationCaseUsageExtensionsTestFixture.cs index 2531a6ba..4686aa12 100644 --- a/SysML2.NET.Tests/Extend/VerificationCaseUsageExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/VerificationCaseUsageExtensionsTestFixture.cs @@ -32,12 +32,12 @@ public class VerificationCaseUsageExtensionsTestFixture [Test] public void ComputeVerificationCaseDefinition_ThrowsNotSupportedException() { - Assert.Throws(() => ((IVerificationCaseUsage)null).ComputeVerificationCaseDefinition()); + Assert.That(() => ((IVerificationCaseUsage)null).ComputeVerificationCaseDefinition(), Throws.TypeOf()); } [Test] public void ComputeVerifiedRequirement_ThrowsNotSupportedException() { - Assert.Throws(() => ((IVerificationCaseUsage)null).ComputeVerifiedRequirement()); + Assert.That(() => ((IVerificationCaseUsage)null).ComputeVerifiedRequirement(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/ViewDefinitionExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ViewDefinitionExtensionsTestFixture.cs index 9cf2742b..cf64bd5f 100644 --- a/SysML2.NET.Tests/Extend/ViewDefinitionExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/ViewDefinitionExtensionsTestFixture.cs @@ -32,25 +32,25 @@ public class ViewDefinitionExtensionsTestFixture [Test] public void ComputeSatisfiedViewpoint_ThrowsNotSupportedException() { - Assert.Throws(() => ((IViewDefinition)null).ComputeSatisfiedViewpoint()); + Assert.That(() => ((IViewDefinition)null).ComputeSatisfiedViewpoint(), Throws.TypeOf()); } [Test] public void ComputeView_ThrowsNotSupportedException() { - Assert.Throws(() => ((IViewDefinition)null).ComputeView()); + Assert.That(() => ((IViewDefinition)null).ComputeView(), Throws.TypeOf()); } [Test] public void ComputeViewCondition_ThrowsNotSupportedException() { - Assert.Throws(() => ((IViewDefinition)null).ComputeViewCondition()); + Assert.That(() => ((IViewDefinition)null).ComputeViewCondition(), Throws.TypeOf()); } [Test] public void ComputeViewRendering_ThrowsNotSupportedException() { - Assert.Throws(() => ((IViewDefinition)null).ComputeViewRendering()); + Assert.That(() => ((IViewDefinition)null).ComputeViewRendering(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/ViewRenderingMembershipExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ViewRenderingMembershipExtensionsTestFixture.cs index 56b1005e..a3cbef04 100644 --- a/SysML2.NET.Tests/Extend/ViewRenderingMembershipExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/ViewRenderingMembershipExtensionsTestFixture.cs @@ -32,13 +32,13 @@ public class ViewRenderingMembershipExtensionsTestFixture [Test] public void ComputeOwnedRendering_ThrowsNotSupportedException() { - Assert.Throws(() => ((IViewRenderingMembership)null).ComputeOwnedRendering()); + Assert.That(() => ((IViewRenderingMembership)null).ComputeOwnedRendering(), Throws.TypeOf()); } [Test] public void ComputeReferencedRendering_ThrowsNotSupportedException() { - Assert.Throws(() => ((IViewRenderingMembership)null).ComputeReferencedRendering()); + Assert.That(() => ((IViewRenderingMembership)null).ComputeReferencedRendering(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/ViewUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ViewUsageExtensionsTestFixture.cs index 06a931eb..8f990dd4 100644 --- a/SysML2.NET.Tests/Extend/ViewUsageExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/ViewUsageExtensionsTestFixture.cs @@ -32,27 +32,27 @@ public class ViewUsageExtensionsTestFixture [Test] public void ComputeExposedElement_ThrowsNotSupportedException() { - Assert.Throws(() => ((IViewUsage)null).ComputeExposedElement()); + Assert.That(() => ((IViewUsage)null).ComputeExposedElement(), Throws.TypeOf()); } [Test] public void ComputeSatisfiedViewpoint_ThrowsNotSupportedException() { - Assert.Throws(() => ((IViewUsage)null).ComputeSatisfiedViewpoint()); + Assert.That(() => ((IViewUsage)null).ComputeSatisfiedViewpoint(), Throws.TypeOf()); } [Test] public void ComputeViewCondition_ThrowsNotSupportedException() { - Assert.Throws(() => ((IViewUsage)null).ComputeViewCondition()); + Assert.That(() => ((IViewUsage)null).ComputeViewCondition(), Throws.TypeOf()); } [Test] public void ComputeViewDefinition_ThrowsNotSupportedException() { - Assert.Throws(() => ((IViewUsage)null).ComputeViewDefinition()); + Assert.That(() => ((IViewUsage)null).ComputeViewDefinition(), Throws.TypeOf()); } [Test] public void ComputeViewRendering_ThrowsNotSupportedException() { - Assert.Throws(() => ((IViewUsage)null).ComputeViewRendering()); + Assert.That(() => ((IViewUsage)null).ComputeViewRendering(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/ViewpointDefinitionExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ViewpointDefinitionExtensionsTestFixture.cs index 8fd95c48..8134b1b3 100644 --- a/SysML2.NET.Tests/Extend/ViewpointDefinitionExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/ViewpointDefinitionExtensionsTestFixture.cs @@ -32,7 +32,7 @@ public class ViewpointDefinitionExtensionsTestFixture [Test] public void ComputeViewpointStakeholder_ThrowsNotSupportedException() { - Assert.Throws(() => ((IViewpointDefinition)null).ComputeViewpointStakeholder()); + Assert.That(() => ((IViewpointDefinition)null).ComputeViewpointStakeholder(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/ViewpointUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ViewpointUsageExtensionsTestFixture.cs index 12e08056..6beade63 100644 --- a/SysML2.NET.Tests/Extend/ViewpointUsageExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/ViewpointUsageExtensionsTestFixture.cs @@ -32,13 +32,13 @@ public class ViewpointUsageExtensionsTestFixture [Test] public void ComputeViewpointDefinition_ThrowsNotSupportedException() { - Assert.Throws(() => ((IViewpointUsage)null).ComputeViewpointDefinition()); + Assert.That(() => ((IViewpointUsage)null).ComputeViewpointDefinition(), Throws.TypeOf()); } [Test] public void ComputeViewpointStakeholder_ThrowsNotSupportedException() { - Assert.Throws(() => ((IViewpointUsage)null).ComputeViewpointStakeholder()); + Assert.That(() => ((IViewpointUsage)null).ComputeViewpointStakeholder(), Throws.TypeOf()); } } } diff --git a/SysML2.NET.Tests/Extend/WhileLoopActionUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/WhileLoopActionUsageExtensionsTestFixture.cs index e715fb38..5a6d1a59 100644 --- a/SysML2.NET.Tests/Extend/WhileLoopActionUsageExtensionsTestFixture.cs +++ b/SysML2.NET.Tests/Extend/WhileLoopActionUsageExtensionsTestFixture.cs @@ -32,13 +32,13 @@ public class WhileLoopActionUsageExtensionsTestFixture [Test] public void ComputeUntilArgument_ThrowsNotSupportedException() { - Assert.Throws(() => ((IWhileLoopActionUsage)null).ComputeUntilArgument()); + Assert.That(() => ((IWhileLoopActionUsage)null).ComputeUntilArgument(), Throws.TypeOf()); } [Test] public void ComputeWhileArgument_ThrowsNotSupportedException() { - Assert.Throws(() => ((IWhileLoopActionUsage)null).ComputeWhileArgument()); + Assert.That(() => ((IWhileLoopActionUsage)null).ComputeWhileArgument(), Throws.TypeOf()); } } }