diff --git a/SysML2.NET.Tests/Extend/AcceptActionUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/AcceptActionUsageExtensionsTestFixture.cs new file mode 100644 index 00000000..58028a42 --- /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.That(() => ((IAcceptActionUsage)null).ComputePayloadArgument(), Throws.TypeOf()); + } + + [Test] + public void ComputePayloadParameter_ThrowsNotSupportedException() + { + Assert.That(() => ((IAcceptActionUsage)null).ComputePayloadParameter(), Throws.TypeOf()); + } + + [Test] + public void ComputeReceiverArgument_ThrowsNotSupportedException() + { + Assert.That(() => ((IAcceptActionUsage)null).ComputeReceiverArgument(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/ActionDefinitionExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ActionDefinitionExtensionsTestFixture.cs new file mode 100644 index 00000000..d70869fc --- /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.That(() => ((IActionDefinition)null).ComputeAction(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/ActionUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ActionUsageExtensionsTestFixture.cs new file mode 100644 index 00000000..5b9c3344 --- /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.That(() => ((IActionUsage)null).ComputeActionDefinition(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/ActorMembershipExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ActorMembershipExtensionsTestFixture.cs new file mode 100644 index 00000000..2ad5978d --- /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.That(() => ((IActorMembership)null).ComputeOwnedActorParameter(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/AllocationDefinitionExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/AllocationDefinitionExtensionsTestFixture.cs new file mode 100644 index 00000000..cb2c0708 --- /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.That(() => ((IAllocationDefinition)null).ComputeAllocation(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/AllocationUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/AllocationUsageExtensionsTestFixture.cs new file mode 100644 index 00000000..4f0dee5e --- /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.That(() => ((IAllocationUsage)null).ComputeAllocationDefinition(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/AnalysisCaseDefinitionExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/AnalysisCaseDefinitionExtensionsTestFixture.cs new file mode 100644 index 00000000..9d76d1b7 --- /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.That(() => ((IAnalysisCaseDefinition)null).ComputeResultExpression(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/AnalysisCaseUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/AnalysisCaseUsageExtensionsTestFixture.cs new file mode 100644 index 00000000..0bdcbd9d --- /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.That(() => ((IAnalysisCaseUsage)null).ComputeAnalysisCaseDefinition(), Throws.TypeOf()); + } + + [Test] + public void ComputeResultExpression_ThrowsNotSupportedException() + { + Assert.That(() => ((IAnalysisCaseUsage)null).ComputeResultExpression(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/AnnotatingElementExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/AnnotatingElementExtensionsTestFixture.cs new file mode 100644 index 00000000..86014a44 --- /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.That(() => ((IAnnotatingElement)null).ComputeAnnotatedElement(), Throws.TypeOf()); + } + + [Test] + public void ComputeAnnotation_ThrowsNotSupportedException() + { + Assert.That(() => ((IAnnotatingElement)null).ComputeAnnotation(), Throws.TypeOf()); + } + + [Test] + public void ComputeOwnedAnnotatingRelationship_ThrowsNotSupportedException() + { + Assert.That(() => ((IAnnotatingElement)null).ComputeOwnedAnnotatingRelationship(), Throws.TypeOf()); + } + + [Test] + public void ComputeOwningAnnotatingRelationship_ThrowsNotSupportedException() + { + Assert.That(() => ((IAnnotatingElement)null).ComputeOwningAnnotatingRelationship(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/AnnotationExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/AnnotationExtensionsTestFixture.cs new file mode 100644 index 00000000..fdbf68e5 --- /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.That(() => ((IAnnotation)null).ComputeAnnotatingElement(), Throws.TypeOf()); + } + + [Test] + public void ComputeOwnedAnnotatingElement_ThrowsNotSupportedException() + { + Assert.That(() => ((IAnnotation)null).ComputeOwnedAnnotatingElement(), Throws.TypeOf()); + } + + [Test] + public void ComputeOwningAnnotatedElement_ThrowsNotSupportedException() + { + Assert.That(() => ((IAnnotation)null).ComputeOwningAnnotatedElement(), Throws.TypeOf()); + } + + [Test] + public void ComputeOwningAnnotatingElement_ThrowsNotSupportedException() + { + Assert.That(() => ((IAnnotation)null).ComputeOwningAnnotatingElement(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/AssertConstraintUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/AssertConstraintUsageExtensionsTestFixture.cs new file mode 100644 index 00000000..3c4410d5 --- /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.That(() => ((IAssertConstraintUsage)null).ComputeAssertedConstraint(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/AssignmentActionUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/AssignmentActionUsageExtensionsTestFixture.cs new file mode 100644 index 00000000..d150c046 --- /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.That(() => ((IAssignmentActionUsage)null).ComputeReferent(), Throws.TypeOf()); + } + + [Test] + public void ComputeTargetArgument_ThrowsNotSupportedException() + { + Assert.That(() => ((IAssignmentActionUsage)null).ComputeTargetArgument(), Throws.TypeOf()); + } + + [Test] + public void ComputeValueExpression_ThrowsNotSupportedException() + { + Assert.That(() => ((IAssignmentActionUsage)null).ComputeValueExpression(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/AssociationExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/AssociationExtensionsTestFixture.cs new file mode 100644 index 00000000..c52f4bb0 --- /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.That(() => ((IAssociation)null).ComputeAssociationEnd(), Throws.TypeOf()); + } + + [Test] + public void ComputeRelatedType_ThrowsNotSupportedException() + { + Assert.That(() => ((IAssociation)null).ComputeRelatedType(), Throws.TypeOf()); + } + + [Test] + public void ComputeSourceType_ThrowsNotSupportedException() + { + Assert.That(() => ((IAssociation)null).ComputeSourceType(), Throws.TypeOf()); + } + + [Test] + public void ComputeTargetType_ThrowsNotSupportedException() + { + Assert.That(() => ((IAssociation)null).ComputeTargetType(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/AttributeUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/AttributeUsageExtensionsTestFixture.cs new file mode 100644 index 00000000..c226fe18 --- /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.That(() => ((IAttributeUsage)null).ComputeAttributeDefinition(), Throws.TypeOf()); + } + + [Test] + public void ComputeIsReference_ThrowsNotSupportedException() + { + Assert.That(() => ((IAttributeUsage)null).ComputeIsReference(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/BehaviorExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/BehaviorExtensionsTestFixture.cs new file mode 100644 index 00000000..b95e2d79 --- /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.That(() => ((IBehavior)null).ComputeParameter(), Throws.TypeOf()); + } + + [Test] + public void ComputeStep_ThrowsNotSupportedException() + { + Assert.That(() => ((IBehavior)null).ComputeStep(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/BooleanExpressionExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/BooleanExpressionExtensionsTestFixture.cs new file mode 100644 index 00000000..c1be9b35 --- /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.That(() => ((IBooleanExpression)null).ComputePredicate(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/CalculationDefinitionExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/CalculationDefinitionExtensionsTestFixture.cs new file mode 100644 index 00000000..0c08b400 --- /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.That(() => ((ICalculationDefinition)null).ComputeCalculation(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/CalculationUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/CalculationUsageExtensionsTestFixture.cs new file mode 100644 index 00000000..11a08521 --- /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.That(() => ((ICalculationUsage)null).ComputeCalculationDefinition(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/CaseDefinitionExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/CaseDefinitionExtensionsTestFixture.cs new file mode 100644 index 00000000..0e053d80 --- /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.That(() => ((ICaseDefinition)null).ComputeActorParameter(), Throws.TypeOf()); + } + + [Test] + public void ComputeObjectiveRequirement_ThrowsNotSupportedException() + { + Assert.That(() => ((ICaseDefinition)null).ComputeObjectiveRequirement(), Throws.TypeOf()); + } + + [Test] + public void ComputeSubjectParameter_ThrowsNotSupportedException() + { + Assert.That(() => ((ICaseDefinition)null).ComputeSubjectParameter(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/CaseUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/CaseUsageExtensionsTestFixture.cs new file mode 100644 index 00000000..a892228a --- /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.That(() => ((ICaseUsage)null).ComputeActorParameter(), Throws.TypeOf()); + } + + [Test] + public void ComputeCaseDefinition_ThrowsNotSupportedException() + { + Assert.That(() => ((ICaseUsage)null).ComputeCaseDefinition(), Throws.TypeOf()); + } + + [Test] + public void ComputeObjectiveRequirement_ThrowsNotSupportedException() + { + Assert.That(() => ((ICaseUsage)null).ComputeObjectiveRequirement(), Throws.TypeOf()); + } + + [Test] + public void ComputeSubjectParameter_ThrowsNotSupportedException() + { + Assert.That(() => ((ICaseUsage)null).ComputeSubjectParameter(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/ClassifierExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ClassifierExtensionsTestFixture.cs new file mode 100644 index 00000000..e77764c6 --- /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.That(() => ((IClassifier)null).ComputeOwnedSubclassification(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/ConcernUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ConcernUsageExtensionsTestFixture.cs new file mode 100644 index 00000000..9607b51b --- /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.That(() => ((IConcernUsage)null).ComputeConcernDefinition(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/ConjugatedPortDefinitionExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ConjugatedPortDefinitionExtensionsTestFixture.cs new file mode 100644 index 00000000..67bfec2e --- /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.That(() => ((IConjugatedPortDefinition)null).ComputeOriginalPortDefinition(), Throws.TypeOf()); + } + + [Test] + public void ComputeOwnedPortConjugator_ThrowsNotSupportedException() + { + Assert.That(() => ((IConjugatedPortDefinition)null).ComputeOwnedPortConjugator(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/ConjugatedPortTypingExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ConjugatedPortTypingExtensionsTestFixture.cs new file mode 100644 index 00000000..34b4840b --- /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.That(() => ((IConjugatedPortTyping)null).ComputePortDefinition(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/ConjugationExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ConjugationExtensionsTestFixture.cs new file mode 100644 index 00000000..df1874de --- /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.That(() => ((IConjugation)null).ComputeOwningType(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/ConnectionDefinitionExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ConnectionDefinitionExtensionsTestFixture.cs new file mode 100644 index 00000000..bf3261c4 --- /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.That(() => ((IConnectionDefinition)null).ComputeConnectionEnd(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/ConnectionUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ConnectionUsageExtensionsTestFixture.cs new file mode 100644 index 00000000..665035a1 --- /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.That(() => ((IConnectionUsage)null).ComputeConnectionDefinition(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/ConnectorExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ConnectorExtensionsTestFixture.cs new file mode 100644 index 00000000..16538453 --- /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.That(() => ((IConnector)null).ComputeAssociation(), Throws.TypeOf()); + } + + [Test] + public void ComputeConnectorEnd_ThrowsNotSupportedException() + { + Assert.That(() => ((IConnector)null).ComputeConnectorEnd(), Throws.TypeOf()); + } + + [Test] + public void ComputeDefaultFeaturingType_ThrowsNotSupportedException() + { + Assert.That(() => ((IConnector)null).ComputeDefaultFeaturingType(), Throws.TypeOf()); + } + + [Test] + public void ComputeRelatedFeature_ThrowsNotSupportedException() + { + Assert.That(() => ((IConnector)null).ComputeRelatedFeature(), Throws.TypeOf()); + } + + [Test] + public void ComputeSourceFeature_ThrowsNotSupportedException() + { + Assert.That(() => ((IConnector)null).ComputeSourceFeature(), Throws.TypeOf()); + } + + [Test] + public void ComputeTargetFeature_ThrowsNotSupportedException() + { + Assert.That(() => ((IConnector)null).ComputeTargetFeature(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/ConstraintUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ConstraintUsageExtensionsTestFixture.cs new file mode 100644 index 00000000..1495397c --- /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.That(() => ((IConstraintUsage)null).ComputeConstraintDefinition(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/CrossSubsettingExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/CrossSubsettingExtensionsTestFixture.cs new file mode 100644 index 00000000..8c22229f --- /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.That(() => ((ICrossSubsetting)null).ComputeCrossingFeature(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/DefinitionExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/DefinitionExtensionsTestFixture.cs new file mode 100644 index 00000000..141eb974 --- /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.That(() => ((IDefinition)null).ComputeDirectedUsage(), Throws.TypeOf()); + } + + [Test] + public void ComputeOwnedAction_ThrowsNotSupportedException() + { + Assert.That(() => ((IDefinition)null).ComputeOwnedAction(), Throws.TypeOf()); + } + + [Test] + public void ComputeOwnedAllocation_ThrowsNotSupportedException() + { + Assert.That(() => ((IDefinition)null).ComputeOwnedAllocation(), Throws.TypeOf()); + } + + [Test] + public void ComputeOwnedAnalysisCase_ThrowsNotSupportedException() + { + Assert.That(() => ((IDefinition)null).ComputeOwnedAnalysisCase(), Throws.TypeOf()); + } + + [Test] + public void ComputeOwnedAttribute_ThrowsNotSupportedException() + { + Assert.That(() => ((IDefinition)null).ComputeOwnedAttribute(), Throws.TypeOf()); + } + + [Test] + public void ComputeOwnedCalculation_ThrowsNotSupportedException() + { + Assert.That(() => ((IDefinition)null).ComputeOwnedCalculation(), Throws.TypeOf()); + } + + [Test] + public void ComputeOwnedCase_ThrowsNotSupportedException() + { + Assert.That(() => ((IDefinition)null).ComputeOwnedCase(), Throws.TypeOf()); + } + + [Test] + public void ComputeOwnedConcern_ThrowsNotSupportedException() + { + Assert.That(() => ((IDefinition)null).ComputeOwnedConcern(), Throws.TypeOf()); + } + + [Test] + public void ComputeOwnedConnection_ThrowsNotSupportedException() + { + Assert.That(() => ((IDefinition)null).ComputeOwnedConnection(), Throws.TypeOf()); + } + + + [Test] + public void ComputeOwnedConstraint_ThrowsNotSupportedException() + { + Assert.That(() => ((IDefinition)null).ComputeOwnedConstraint(), Throws.TypeOf()); + } + + [Test] + public void ComputeOwnedEnumeration_ThrowsNotSupportedException() + { + Assert.That(() => ((IDefinition)null).ComputeOwnedEnumeration(), Throws.TypeOf()); + } + + [Test] + public void ComputeOwnedFlow_ThrowsNotSupportedException() + { + Assert.That(() => ((IDefinition)null).ComputeOwnedFlow(), Throws.TypeOf()); + } + + [Test] + public void ComputeOwnedInterface_ThrowsNotSupportedException() + { + Assert.That(() => ((IDefinition)null).ComputeOwnedInterface(), Throws.TypeOf()); + } + + [Test] + public void ComputeOwnedItem_ThrowsNotSupportedException() + { + Assert.That(() => ((IDefinition)null).ComputeOwnedItem(), Throws.TypeOf()); + } + + [Test] + public void ComputeOwnedMetadata_ThrowsNotSupportedException() + { + Assert.That(() => ((IDefinition)null).ComputeOwnedMetadata(), Throws.TypeOf()); + } + + [Test] + public void ComputeOwnedOccurrence_ThrowsNotSupportedException() + { + Assert.That(() => ((IDefinition)null).ComputeOwnedOccurrence(), Throws.TypeOf()); + } + + [Test] + public void ComputeOwnedPart_ThrowsNotSupportedException() + { + Assert.That(() => ((IDefinition)null).ComputeOwnedPart(), Throws.TypeOf()); + } + + [Test] + public void ComputeOwnedPort_ThrowsNotSupportedException() + { + Assert.That(() => ((IDefinition)null).ComputeOwnedPort(), Throws.TypeOf()); + } + + [Test] + public void ComputeOwnedReference_ThrowsNotSupportedException() + { + Assert.That(() => ((IDefinition)null).ComputeOwnedReference(), Throws.TypeOf()); + } + + [Test] + public void ComputeOwnedRendering_ThrowsNotSupportedException() + { + Assert.That(() => ((IDefinition)null).ComputeOwnedRendering(), Throws.TypeOf()); + } + + [Test] + public void ComputeOwnedRequirement_ThrowsNotSupportedException() + { + Assert.That(() => ((IDefinition)null).ComputeOwnedRequirement(), Throws.TypeOf()); + } + + [Test] + public void ComputeOwnedState_ThrowsNotSupportedException() + { + Assert.That(() => ((IDefinition)null).ComputeOwnedState(), Throws.TypeOf()); + } + + [Test] + public void ComputeOwnedTransition_ThrowsNotSupportedException() + { + Assert.That(() => ((IDefinition)null).ComputeOwnedTransition(), Throws.TypeOf()); + } + + [Test] + public void ComputeOwnedUsage_ThrowsNotSupportedException() + { + Assert.That(() => ((IDefinition)null).ComputeOwnedUsage(), Throws.TypeOf()); + } + + [Test] + public void ComputeOwnedUseCase_ThrowsNotSupportedException() + { + Assert.That(() => ((IDefinition)null).ComputeOwnedUseCase(), Throws.TypeOf()); + } + + [Test] + public void ComputeOwnedVerificationCase_ThrowsNotSupportedException() + { + Assert.That(() => ((IDefinition)null).ComputeOwnedVerificationCase(), Throws.TypeOf()); + } + + [Test] + public void ComputeOwnedView_ThrowsNotSupportedException() + { + Assert.That(() => ((IDefinition)null).ComputeOwnedView(), Throws.TypeOf()); + } + + [Test] + public void ComputeOwnedViewpoint_ThrowsNotSupportedException() + { + Assert.That(() => ((IDefinition)null).ComputeOwnedViewpoint(), Throws.TypeOf()); + } + + [Test] + public void ComputeUsage_ThrowsNotSupportedException() + { + Assert.That(() => ((IDefinition)null).ComputeUsage(), Throws.TypeOf()); + } + + [Test] + public void ComputeVariant_ThrowsNotSupportedException() + { + Assert.That(() => ((IDefinition)null).ComputeVariant(), Throws.TypeOf()); + } + + [Test] + public void ComputeVariantMembership_ThrowsNotSupportedException() + { + Assert.That(() => ((IDefinition)null).ComputeVariantMembership(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/DifferencingExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/DifferencingExtensionsTestFixture.cs new file mode 100644 index 00000000..7c5f31ef --- /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.That(() => ((IDifferencing)null).ComputeTypeDifferenced(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/DisjoiningExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/DisjoiningExtensionsTestFixture.cs new file mode 100644 index 00000000..15969bde --- /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.That(() => ((IDisjoining)null).ComputeOwningType(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/DocumentationExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/DocumentationExtensionsTestFixture.cs new file mode 100644 index 00000000..60c417fa --- /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.That(() => ((IDocumentation)null).ComputeDocumentedElement(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/ElementExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ElementExtensionsTestFixture.cs new file mode 100644 index 00000000..dcfd0bfa --- /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.That(() => ((IElement)null).ComputeDocumentation(), Throws.TypeOf()); + } + + [Test] + public void ComputeIsLibraryElement_ThrowsNotSupportedException() + { + Assert.That(() => ((IElement)null).ComputeIsLibraryElement(), Throws.TypeOf()); + } + + [Test] + public void ComputeName_ThrowsNotSupportedException() + { + Assert.That(() => ((IElement)null).ComputeName(), Throws.TypeOf()); + } + + [Test] + public void ComputeOwnedAnnotation_ThrowsNotSupportedException() + { + Assert.That(() => ((IElement)null).ComputeOwnedAnnotation(), Throws.TypeOf()); + } + + [Test] + public void ComputeOwnedElement_ThrowsNotSupportedException() + { + Assert.That(() => ((IElement)null).ComputeOwnedElement(), Throws.TypeOf()); + } + + [Test] + public void ComputeOwner_ThrowsNotSupportedException() + { + Assert.That(() => ((IElement)null).ComputeOwner(), Throws.TypeOf()); + } + + [Test] + public void ComputeOwningMembership_ThrowsNotSupportedException() + { + Assert.That(() => ((IElement)null).ComputeOwningMembership(), Throws.TypeOf()); + } + + [Test] + public void ComputeOwningNamespace_ThrowsNotSupportedException() + { + Assert.That(() => ((IElement)null).ComputeOwningNamespace(), Throws.TypeOf()); + } + + [Test] + public void ComputeQualifiedName_ThrowsNotSupportedException() + { + Assert.That(() => ((IElement)null).ComputeQualifiedName(), Throws.TypeOf()); + } + + [Test] + public void ComputeShortName_ThrowsNotSupportedException() + { + Assert.That(() => ((IElement)null).ComputeShortName(), Throws.TypeOf()); + } + + [Test] + public void ComputeTextualRepresentation_ThrowsNotSupportedException() + { + Assert.That(() => ((IElement)null).ComputeTextualRepresentation(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/ElementFilterMembershipExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ElementFilterMembershipExtensionsTestFixture.cs new file mode 100644 index 00000000..e55c78ed --- /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.That(() => ((IElementFilterMembership)null).ComputeCondition(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/EndFeatureMembershipExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/EndFeatureMembershipExtensionsTestFixture.cs new file mode 100644 index 00000000..8a121303 --- /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.That(() => ((IEndFeatureMembership)null).ComputeOwnedMemberFeature(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/EnumerationDefinitionExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/EnumerationDefinitionExtensionsTestFixture.cs new file mode 100644 index 00000000..9cf7ac89 --- /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.That(() => ((IEnumerationDefinition)null).ComputeEnumeratedValue(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/EnumerationUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/EnumerationUsageExtensionsTestFixture.cs new file mode 100644 index 00000000..f29e9be2 --- /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.That(() => ((IEnumerationUsage)null).ComputeEnumerationDefinition(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/EventOccurrenceUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/EventOccurrenceUsageExtensionsTestFixture.cs new file mode 100644 index 00000000..600a74f0 --- /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.That(() => ((IEventOccurrenceUsage)null).ComputeEventOccurrence(), Throws.TypeOf()); + } + + [Test] + public void ComputeIsReference_ThrowsNotSupportedException() + { + Assert.That(() => ((IEventOccurrenceUsage)null).ComputeIsReference(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/ExhibitStateUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ExhibitStateUsageExtensionsTestFixture.cs new file mode 100644 index 00000000..e1979b8a --- /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.That(() => ((IExhibitStateUsage)null).ComputeExhibitedState(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/ExpressionExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ExpressionExtensionsTestFixture.cs new file mode 100644 index 00000000..cf5de798 --- /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.That(() => ((IExpression)null).ComputeFunction(), Throws.TypeOf()); + } + + [Test] + public void ComputeIsModelLevelEvaluable_ThrowsNotSupportedException() + { + Assert.That(() => ((IExpression)null).ComputeIsModelLevelEvaluable(), Throws.TypeOf()); + } + + [Test] + public void ComputeResult_ThrowsNotSupportedException() + { + Assert.That(() => ((IExpression)null).ComputeResult(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/FeatureChainExpressionExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/FeatureChainExpressionExtensionsTestFixture.cs new file mode 100644 index 00000000..0824867a --- /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.That(() => ((IFeatureChainExpression)null).ComputeTargetFeature(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/FeatureChainingExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/FeatureChainingExtensionsTestFixture.cs new file mode 100644 index 00000000..ac46c8a0 --- /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.That(() => ((IFeatureChaining)null).ComputeFeatureChained(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/FeatureExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/FeatureExtensionsTestFixture.cs new file mode 100644 index 00000000..08b69bb1 --- /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.That(() => ((IFeature)null).ComputeChainingFeature(), Throws.TypeOf()); + } + + [Test] + public void ComputeCrossFeature_ThrowsNotSupportedException() + { + Assert.That(() => ((IFeature)null).ComputeCrossFeature(), Throws.TypeOf()); + } + + [Test] + public void ComputeEndOwningType_ThrowsNotSupportedException() + { + Assert.That(() => ((IFeature)null).ComputeEndOwningType(), Throws.TypeOf()); + } + + [Test] + public void ComputeFeatureTarget_ThrowsNotSupportedException() + { + Assert.That(() => ((IFeature)null).ComputeFeatureTarget(), Throws.TypeOf()); + } + + [Test] + public void ComputeFeaturingType_ThrowsNotSupportedException() + { + Assert.That(() => ((IFeature)null).ComputeFeaturingType(), Throws.TypeOf()); + } + + [Test] + public void ComputeOwnedCrossSubsetting_ThrowsNotSupportedException() + { + Assert.That(() => ((IFeature)null).ComputeOwnedCrossSubsetting(), Throws.TypeOf()); + } + + [Test] + public void ComputeOwnedFeatureChaining_ThrowsNotSupportedException() + { + Assert.That(() => ((IFeature)null).ComputeOwnedFeatureChaining(), Throws.TypeOf()); + } + + [Test] + public void ComputeOwnedFeatureInverting_ThrowsNotSupportedException() + { + Assert.That(() => ((IFeature)null).ComputeOwnedFeatureInverting(), Throws.TypeOf()); + } + + [Test] + public void ComputeOwnedRedefinition_ThrowsNotSupportedException() + { + Assert.That(() => ((IFeature)null).ComputeOwnedRedefinition(), Throws.TypeOf()); + } + + [Test] + public void ComputeOwnedReferenceSubsetting_ThrowsNotSupportedException() + { + Assert.That(() => ((IFeature)null).ComputeOwnedReferenceSubsetting(), Throws.TypeOf()); + } + + [Test] + public void ComputeOwnedSubsetting_ThrowsNotSupportedException() + { + Assert.That(() => ((IFeature)null).ComputeOwnedSubsetting(), Throws.TypeOf()); + } + + [Test] + public void ComputeOwnedTypeFeaturing_ThrowsNotSupportedException() + { + Assert.That(() => ((IFeature)null).ComputeOwnedTypeFeaturing(), Throws.TypeOf()); + } + + [Test] + public void ComputeOwnedTyping_ThrowsNotSupportedException() + { + Assert.That(() => ((IFeature)null).ComputeOwnedTyping(), Throws.TypeOf()); + } + + [Test] + public void ComputeOwningFeatureMembership_ThrowsNotSupportedException() + { + Assert.That(() => ((IFeature)null).ComputeOwningFeatureMembership(), Throws.TypeOf()); + } + + [Test] + public void ComputeOwningType_ThrowsNotSupportedException() + { + Assert.That(() => ((IFeature)null).ComputeOwningType(), Throws.TypeOf()); + } + + [Test] + public void ComputeType_ThrowsNotSupportedException() + { + Assert.That(() => ((IFeature)null).ComputeType(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/FeatureInvertingExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/FeatureInvertingExtensionsTestFixture.cs new file mode 100644 index 00000000..655ce32d --- /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.That(() => ((IFeatureInverting)null).ComputeOwningFeature(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/FeatureMembershipExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/FeatureMembershipExtensionsTestFixture.cs new file mode 100644 index 00000000..dc9b93b0 --- /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.That(() => ((IFeatureMembership)null).ComputeOwnedMemberFeature(), Throws.TypeOf()); + } + + [Test] + public void ComputeOwningType_ThrowsNotSupportedException() + { + Assert.That(() => ((IFeatureMembership)null).ComputeOwningType(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/FeatureReferenceExpressionExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/FeatureReferenceExpressionExtensionsTestFixture.cs new file mode 100644 index 00000000..1ec91c35 --- /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.That(() => ((IFeatureReferenceExpression)null).ComputeReferent(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/FeatureTypingExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/FeatureTypingExtensionsTestFixture.cs new file mode 100644 index 00000000..553e9ddb --- /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.That(() => ((IFeatureTyping)null).ComputeOwningFeature(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/FeatureValueExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/FeatureValueExtensionsTestFixture.cs new file mode 100644 index 00000000..74b662ec --- /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.That(() => ((IFeatureValue)null).ComputeFeatureWithValue(), Throws.TypeOf()); + } + + [Test] + public void ComputeValue_ThrowsNotSupportedException() + { + Assert.That(() => ((IFeatureValue)null).ComputeValue(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/FlowDefinitionExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/FlowDefinitionExtensionsTestFixture.cs new file mode 100644 index 00000000..3f5dc6ee --- /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.That(() => ((IFlowDefinition)null).ComputeFlowEnd(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/FlowExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/FlowExtensionsTestFixture.cs new file mode 100644 index 00000000..344b82db --- /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.That(() => ((IFlow)null).ComputeFlowEnd(), Throws.TypeOf()); + } + + [Test] + public void ComputeInteraction_ThrowsNotSupportedException() + { + Assert.That(() => ((IFlow)null).ComputeInteraction(), Throws.TypeOf()); + } + + [Test] + public void ComputePayloadFeature_ThrowsNotSupportedException() + { + Assert.That(() => ((IFlow)null).ComputePayloadFeature(), Throws.TypeOf()); + } + + [Test] + public void ComputePayloadType_ThrowsNotSupportedException() + { + Assert.That(() => ((IFlow)null).ComputePayloadType(), Throws.TypeOf()); + } + + [Test] + public void ComputeSourceOutputFeature_ThrowsNotSupportedException() + { + Assert.That(() => ((IFlow)null).ComputeSourceOutputFeature(), Throws.TypeOf()); + } + + [Test] + public void ComputeTargetInputFeature_ThrowsNotSupportedException() + { + Assert.That(() => ((IFlow)null).ComputeTargetInputFeature(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/FlowUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/FlowUsageExtensionsTestFixture.cs new file mode 100644 index 00000000..e25b5590 --- /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.That(() => ((IFlowUsage)null).ComputeFlowDefinition(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/ForLoopActionUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ForLoopActionUsageExtensionsTestFixture.cs new file mode 100644 index 00000000..d456f3f6 --- /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.That(() => ((IForLoopActionUsage)null).ComputeLoopVariable(), Throws.TypeOf()); + } + + [Test] + public void ComputeSeqArgument_ThrowsNotSupportedException() + { + Assert.That(() => ((IForLoopActionUsage)null).ComputeSeqArgument(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/FramedConcernMembershipExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/FramedConcernMembershipExtensionsTestFixture.cs new file mode 100644 index 00000000..8adb5ec7 --- /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.That(() => ((IFramedConcernMembership)null).ComputeOwnedConcern(), Throws.TypeOf()); + } + [Test] + public void ComputeReferencedConcern_ThrowsNotSupportedException() + { + Assert.That(() => ((IFramedConcernMembership)null).ComputeReferencedConcern(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/FunctionExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/FunctionExtensionsTestFixture.cs new file mode 100644 index 00000000..c056b80c --- /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.That(() => ((IFunction)null).ComputeExpression(), Throws.TypeOf()); + } + + [Test] + public void ComputeIsModelLevelEvaluable_ThrowsNotSupportedException() + { + Assert.That(() => ((IFunction)null).ComputeIsModelLevelEvaluable(), Throws.TypeOf()); + } + + [Test] + public void ComputeResult_ThrowsNotSupportedException() + { + Assert.That(() => ((IFunction)null).ComputeResult(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/IfActionUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/IfActionUsageExtensionsTestFixture.cs new file mode 100644 index 00000000..5b16655f --- /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.That(() => ((IIfActionUsage)null).ComputeElseAction(), Throws.TypeOf()); + } + + [Test] + public void ComputeIfArgument_ThrowsNotSupportedException() + { + Assert.That(() => ((IIfActionUsage)null).ComputeIfArgument(), Throws.TypeOf()); + } + + [Test] + public void ComputeThenAction_ThrowsNotSupportedException() + { + Assert.That(() => ((IIfActionUsage)null).ComputeThenAction(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/ImportExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ImportExtensionsTestFixture.cs new file mode 100644 index 00000000..d8d1954e --- /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.That(() => ((IImport)null).ComputeImportedElement(), Throws.TypeOf()); + } + + [Test] + public void ComputeImportOwningNamespace_ThrowsNotSupportedException() + { + Assert.That(() => ((IImport)null).ComputeImportOwningNamespace(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/IncludeUseCaseUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/IncludeUseCaseUsageExtensionsTestFixture.cs new file mode 100644 index 00000000..0e2fb42a --- /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.That(() => ((IIncludeUseCaseUsage)null).ComputeUseCaseIncluded(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/InstantiationExpressionExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/InstantiationExpressionExtensionsTestFixture.cs new file mode 100644 index 00000000..d9371616 --- /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.That(() => ((IInstantiationExpression)null).ComputeArgument(), Throws.TypeOf()); + } + + [Test] + public void ComputeInstantiatedType_ThrowsNotSupportedException() + { + Assert.That(() => ((IInstantiationExpression)null).ComputeInstantiatedType(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/InterfaceDefinitionExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/InterfaceDefinitionExtensionsTestFixture.cs new file mode 100644 index 00000000..bf4b455a --- /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.That(() => ((IInterfaceDefinition)null).ComputeInterfaceEnd(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/InterfaceUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/InterfaceUsageExtensionsTestFixture.cs new file mode 100644 index 00000000..34c760dd --- /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.That(() => ((IInterfaceUsage)null).ComputeInterfaceDefinition(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/IntersectingExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/IntersectingExtensionsTestFixture.cs new file mode 100644 index 00000000..640e5d10 --- /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.That(() => ((IIntersecting)null).ComputeTypeIntersected(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/ItemUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ItemUsageExtensionsTestFixture.cs new file mode 100644 index 00000000..e2f1a0a1 --- /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.That(() => ((IItemUsage)null).ComputeItemDefinition(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/LoopActionUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/LoopActionUsageExtensionsTestFixture.cs new file mode 100644 index 00000000..200e7a85 --- /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.That(() => ((ILoopActionUsage)null).ComputeBodyAction(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/MembershipExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/MembershipExtensionsTestFixture.cs new file mode 100644 index 00000000..c10bcf6a --- /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.That(() => ((IMembership)null).ComputeMemberElementId(), Throws.TypeOf()); + } + + [Test] + public void ComputeMembershipOwningNamespace_ThrowsNotSupportedException() + { + Assert.That(() => ((IMembership)null).ComputeMembershipOwningNamespace(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/MetadataAccessExpressionExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/MetadataAccessExpressionExtensionsTestFixture.cs new file mode 100644 index 00000000..97af60a2 --- /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.That(() => ((IMetadataAccessExpression)null).ComputeReferencedElement(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/MetadataFeatureExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/MetadataFeatureExtensionsTestFixture.cs new file mode 100644 index 00000000..6223faab --- /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.That(() => ((IMetadataFeature)null).ComputeMetaclass(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/MetadataUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/MetadataUsageExtensionsTestFixture.cs new file mode 100644 index 00000000..75dbb4fa --- /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.That(() => ((IMetadataUsage)null).ComputeMetadataDefinition(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/MultiplicityRangeExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/MultiplicityRangeExtensionsTestFixture.cs new file mode 100644 index 00000000..01b99270 --- /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.That(() => ((IMultiplicityRange)null).ComputeBound(), Throws.TypeOf()); + } + + [Test] + public void ComputeLowerBound_ThrowsNotSupportedException() + { + Assert.That(() => ((IMultiplicityRange)null).ComputeLowerBound(), Throws.TypeOf()); + } + + [Test] + public void ComputeUpperBound_ThrowsNotSupportedException() + { + Assert.That(() => ((IMultiplicityRange)null).ComputeUpperBound(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/ObjectiveMembershipExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ObjectiveMembershipExtensionsTestFixture.cs new file mode 100644 index 00000000..cc308bcf --- /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.That(() => ((IObjectiveMembership)null).ComputeOwnedObjectiveRequirement(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/OccurrenceUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/OccurrenceUsageExtensionsTestFixture.cs new file mode 100644 index 00000000..1c853bc8 --- /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.That(() => ((IOccurrenceUsage)null).ComputeIndividualDefinition(), Throws.TypeOf()); + } + + [Test] + public void ComputeOccurrenceDefinition_ThrowsNotSupportedException() + { + Assert.That(() => ((IOccurrenceUsage)null).ComputeOccurrenceDefinition(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/OwningMembershipExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/OwningMembershipExtensionsTestFixture.cs new file mode 100644 index 00000000..4cc689cb --- /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.That(() => ((IOwningMembership)null).ComputeOwnedMemberElement(), Throws.TypeOf()); + } + + [Test] + public void ComputeOwnedMemberElementId_ThrowsNotSupportedException() + { + Assert.That(() => ((IOwningMembership)null).ComputeOwnedMemberElementId(), Throws.TypeOf()); + } + + [Test] + public void ComputeOwnedMemberName_ThrowsNotSupportedException() + { + Assert.That(() => ((IOwningMembership)null).ComputeOwnedMemberName(), Throws.TypeOf()); + } + + [Test] + public void ComputeOwnedMemberShortName_ThrowsNotSupportedException() + { + Assert.That(() => ((IOwningMembership)null).ComputeOwnedMemberShortName(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/PackageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/PackageExtensionsTestFixture.cs new file mode 100644 index 00000000..e9f5c68f --- /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.That(() => ((IPackage)null).ComputeFilterCondition(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/ParameterMembershipExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ParameterMembershipExtensionsTestFixture.cs new file mode 100644 index 00000000..c35b71c7 --- /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.That(() => ((IParameterMembership)null).ComputeOwnedMemberParameter(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/PartUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/PartUsageExtensionsTestFixture.cs new file mode 100644 index 00000000..1affb119 --- /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.That(() => ((IPartUsage)null).ComputePartDefinition(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/PerformActionUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/PerformActionUsageExtensionsTestFixture.cs new file mode 100644 index 00000000..49e6706c --- /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.That(() => ((IPerformActionUsage)null).ComputePerformedAction(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/PortConjugationExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/PortConjugationExtensionsTestFixture.cs new file mode 100644 index 00000000..ec5b5d9f --- /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.That(() => ((IPortConjugation)null).ComputeConjugatedPortDefinition(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/PortDefinitionExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/PortDefinitionExtensionsTestFixture.cs new file mode 100644 index 00000000..44f83415 --- /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.That(() => ((IPortDefinition)null).ComputeConjugatedPortDefinition(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/PortUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/PortUsageExtensionsTestFixture.cs new file mode 100644 index 00000000..81176c41 --- /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.That(() => ((IPortUsage)null).ComputePortDefinition(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/ReferenceSubsettingExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ReferenceSubsettingExtensionsTestFixture.cs new file mode 100644 index 00000000..feef80d3 --- /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.That(() => ((IReferenceSubsetting)null).ComputeReferencingFeature(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/ReferenceUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ReferenceUsageExtensionsTestFixture.cs new file mode 100644 index 00000000..0dabebb5 --- /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.That(() => ((IReferenceUsage)null).ComputeIsReference(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/RelationshipExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/RelationshipExtensionsTestFixture.cs new file mode 100644 index 00000000..9ce60a32 --- /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.That(() => ((IRelationship)null).ComputeRelatedElement(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/RenderingDefinitionExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/RenderingDefinitionExtensionsTestFixture.cs new file mode 100644 index 00000000..dba4cacc --- /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.That(() => ((IRenderingDefinition)null).ComputeRendering(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/RenderingUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/RenderingUsageExtensionsTestFixture.cs new file mode 100644 index 00000000..08c0a25c --- /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.That(() => ((IRenderingUsage)null).ComputeRenderingDefinition(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/RequirementConstraintMembershipExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/RequirementConstraintMembershipExtensionsTestFixture.cs new file mode 100644 index 00000000..bd876035 --- /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.That(() => ((IRequirementConstraintMembership)null).ComputeOwnedConstraint(), Throws.TypeOf()); + } + + [Test] + public void ComputeReferencedConstraint_ThrowsNotSupportedException() + { + Assert.That(() => ((IRequirementConstraintMembership)null).ComputeReferencedConstraint(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/RequirementDefinitionExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/RequirementDefinitionExtensionsTestFixture.cs new file mode 100644 index 00000000..bb6e6cd9 --- /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.That(() => ((IRequirementDefinition)null).ComputeActorParameter(), Throws.TypeOf()); + } + + [Test] + public void ComputeAssumedConstraint_ThrowsNotSupportedException() + { + Assert.That(() => ((IRequirementDefinition)null).ComputeAssumedConstraint(), Throws.TypeOf()); + } + + [Test] + public void ComputeFramedConcern_ThrowsNotSupportedException() + { + Assert.That(() => ((IRequirementDefinition)null).ComputeFramedConcern(), Throws.TypeOf()); + } + [Test] + public void ComputeRequiredConstraint_ThrowsNotSupportedException() + { + Assert.That(() => ((IRequirementDefinition)null).ComputeRequiredConstraint(), Throws.TypeOf()); + } + + [Test] + public void ComputeStakeholderParameter_ThrowsNotSupportedException() + { + Assert.That(() => ((IRequirementDefinition)null).ComputeStakeholderParameter(), Throws.TypeOf()); + } + + [Test] + public void ComputeSubjectParameter_ThrowsNotSupportedException() + { + Assert.That(() => ((IRequirementDefinition)null).ComputeSubjectParameter(), Throws.TypeOf()); + } + + [Test] + public void ComputeText_ThrowsNotSupportedException() + { + Assert.That(() => ((IRequirementDefinition)null).ComputeText(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/RequirementUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/RequirementUsageExtensionsTestFixture.cs new file mode 100644 index 00000000..a8c4db7a --- /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.That(() => ((IRequirementUsage)null).ComputeActorParameter(), Throws.TypeOf()); + } + + [Test] + public void ComputeAssumedConstraint_ThrowsNotSupportedException() + { + Assert.That(() => ((IRequirementUsage)null).ComputeAssumedConstraint(), Throws.TypeOf()); + } + + [Test] + public void ComputeFramedConcern_ThrowsNotSupportedException() + { + Assert.That(() => ((IRequirementUsage)null).ComputeFramedConcern(), Throws.TypeOf()); + } + + [Test] + public void ComputeRequiredConstraint_ThrowsNotSupportedException() + { + Assert.That(() => ((IRequirementUsage)null).ComputeRequiredConstraint(), Throws.TypeOf()); + } + + [Test] + public void ComputeRequirementDefinition_ThrowsNotSupportedException() + { + Assert.That(() => ((IRequirementUsage)null).ComputeRequirementDefinition(), Throws.TypeOf()); + } + + [Test] + public void ComputeStakeholderParameter_ThrowsNotSupportedException() + { + Assert.That(() => ((IRequirementUsage)null).ComputeStakeholderParameter(), Throws.TypeOf()); + } + + [Test] + public void ComputeSubjectParameter_ThrowsNotSupportedException() + { + Assert.That(() => ((IRequirementUsage)null).ComputeSubjectParameter(), Throws.TypeOf()); + } + + [Test] + public void ComputeText_ThrowsNotSupportedException() + { + Assert.That(() => ((IRequirementUsage)null).ComputeText(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/RequirementVerificationMembershipExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/RequirementVerificationMembershipExtensionsTestFixture.cs new file mode 100644 index 00000000..b691b212 --- /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.That(() => ((IRequirementVerificationMembership)null).ComputeOwnedRequirement(), Throws.TypeOf()); + } + + [Test] + public void ComputeVerifiedRequirement_ThrowsNotSupportedException() + { + Assert.That(() => ((IRequirementVerificationMembership)null).ComputeVerifiedRequirement(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/ResultExpressionMembershipExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ResultExpressionMembershipExtensionsTestFixture.cs new file mode 100644 index 00000000..035182f2 --- /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.That(() => ((IResultExpressionMembership)null).ComputeOwnedResultExpression(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/SatisfyRequirementUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/SatisfyRequirementUsageExtensionsTestFixture.cs new file mode 100644 index 00000000..506fc4b3 --- /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.That(() => ((ISatisfyRequirementUsage)null).ComputeSatisfiedRequirement(), Throws.TypeOf()); + } + [Test] + public void ComputeSatisfyingFeature_ThrowsNotSupportedException() + { + Assert.That(() => ((ISatisfyRequirementUsage)null).ComputeSatisfyingFeature(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/SendActionUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/SendActionUsageExtensionsTestFixture.cs new file mode 100644 index 00000000..f39d61bf --- /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.That(() => ((ISendActionUsage)null).ComputePayloadArgument(), Throws.TypeOf()); + } + + [Test] + public void ComputeReceiverArgument_ThrowsNotSupportedException() + { + Assert.That(() => ((ISendActionUsage)null).ComputeReceiverArgument(), Throws.TypeOf()); + } + + [Test] + public void ComputeSenderArgument_ThrowsNotSupportedException() + { + Assert.That(() => ((ISendActionUsage)null).ComputeSenderArgument(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/SpecializationExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/SpecializationExtensionsTestFixture.cs new file mode 100644 index 00000000..69c7280c --- /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.That(() => ((ISpecialization)null).ComputeOwningType(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/StakeholderMembershipExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/StakeholderMembershipExtensionsTestFixture.cs new file mode 100644 index 00000000..50dd4366 --- /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.That(() => ((IStakeholderMembership)null).ComputeOwnedStakeholderParameter(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/StateDefinitionExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/StateDefinitionExtensionsTestFixture.cs new file mode 100644 index 00000000..fd8e08ea --- /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.That(() => ((IStateDefinition)null).ComputeDoAction(), Throws.TypeOf()); + } + + [Test] + public void ComputeEntryAction_ThrowsNotSupportedException() + { + Assert.That(() => ((IStateDefinition)null).ComputeEntryAction(), Throws.TypeOf()); + } + + [Test] + public void ComputeExitAction_ThrowsNotSupportedException() + { + Assert.That(() => ((IStateDefinition)null).ComputeExitAction(), Throws.TypeOf()); + } + + [Test] + public void ComputeState_ThrowsNotSupportedException() + { + Assert.That(() => ((IStateDefinition)null).ComputeState(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/StateSubactionMembershipExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/StateSubactionMembershipExtensionsTestFixture.cs new file mode 100644 index 00000000..9eb5bdb3 --- /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.That(() => ((IStateSubactionMembership)null).ComputeAction(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/StateUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/StateUsageExtensionsTestFixture.cs new file mode 100644 index 00000000..d064123c --- /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.That(() => ((IStateUsage)null).ComputeDoAction(), Throws.TypeOf()); + } + + [Test] + public void ComputeEntryAction_ThrowsNotSupportedException() + { + Assert.That(() => ((IStateUsage)null).ComputeEntryAction(), Throws.TypeOf()); + } + + [Test] + public void ComputeExitAction_ThrowsNotSupportedException() + { + Assert.That(() => ((IStateUsage)null).ComputeExitAction(), Throws.TypeOf()); + } + + [Test] + public void ComputeStateDefinition_ThrowsNotSupportedException() + { + Assert.That(() => ((IStateUsage)null).ComputeStateDefinition(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/StepExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/StepExtensionsTestFixture.cs new file mode 100644 index 00000000..0a152e47 --- /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.That(() => ((IStep)null).ComputeBehavior(), Throws.TypeOf()); + } + + [Test] + public void ComputeParameter_ThrowsNotSupportedException() + { + Assert.That(() => ((IStep)null).ComputeParameter(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/SubclassificationExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/SubclassificationExtensionsTestFixture.cs new file mode 100644 index 00000000..09a428db --- /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.That(() => ((ISubclassification)null).ComputeOwningClassifier(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/SubjectMembershipExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/SubjectMembershipExtensionsTestFixture.cs new file mode 100644 index 00000000..8400a27a --- /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.That(() => ((ISubjectMembership)null).ComputeOwnedSubjectParameter(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/SubsettingExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/SubsettingExtensionsTestFixture.cs new file mode 100644 index 00000000..140fd5a0 --- /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.That(() => ((ISubsetting)null).ComputeOwningFeature(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/TerminateActionUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/TerminateActionUsageExtensionsTestFixture.cs new file mode 100644 index 00000000..547e5dd2 --- /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.That(() => ((ITerminateActionUsage)null).ComputeTerminatedOccurrenceArgument(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/TextualRepresentationExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/TextualRepresentationExtensionsTestFixture.cs new file mode 100644 index 00000000..3ad1b7d9 --- /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.That(() => ((ITextualRepresentation)null).ComputeRepresentedElement(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/TransitionFeatureMembershipExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/TransitionFeatureMembershipExtensionsTestFixture.cs new file mode 100644 index 00000000..eff5ebde --- /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.That(() => ((ITransitionFeatureMembership)null).ComputeTransitionFeature(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/TransitionUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/TransitionUsageExtensionsTestFixture.cs new file mode 100644 index 00000000..3fa722aa --- /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.That(() => ((ITransitionUsage)null).ComputeEffectAction(), Throws.TypeOf()); + } + + [Test] + public void ComputeGuardExpression_ThrowsNotSupportedException() + { + Assert.That(() => ((ITransitionUsage)null).ComputeGuardExpression(), Throws.TypeOf()); + } + + [Test] + public void ComputeSource_ThrowsNotSupportedException() + { + Assert.That(() => ((ITransitionUsage)null).ComputeSource(), Throws.TypeOf()); + } + + [Test] + public void ComputeSuccession_ThrowsNotSupportedException() + { + Assert.That(() => ((ITransitionUsage)null).ComputeSuccession(), Throws.TypeOf()); + } + + [Test] + public void ComputeTarget_ThrowsNotSupportedException() + { + Assert.That(() => ((ITransitionUsage)null).ComputeTarget(), Throws.TypeOf()); + } + + [Test] + public void ComputeTriggerAction_ThrowsNotSupportedException() + { + Assert.That(() => ((ITransitionUsage)null).ComputeTriggerAction(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/TypeExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/TypeExtensionsTestFixture.cs new file mode 100644 index 00000000..bccf6ef1 --- /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.That(() => ((IType)null).ComputeDifferencingType(), Throws.TypeOf()); + } + + [Test] + public void ComputeDirectedFeature_ThrowsNotSupportedException() + { + Assert.That(() => ((IType)null).ComputeDirectedFeature(), Throws.TypeOf()); + } + + [Test] + public void ComputeEndFeature_ThrowsNotSupportedException() + { + Assert.That(() => ((IType)null).ComputeEndFeature(), Throws.TypeOf()); + } + + [Test] + public void ComputeFeature_ThrowsNotSupportedException() + { + Assert.That(() => ((IType)null).ComputeFeature(), Throws.TypeOf()); + } + + [Test] + public void ComputeFeatureMembership_ThrowsNotSupportedException() + { + Assert.That(() => ((IType)null).ComputeFeatureMembership(), Throws.TypeOf()); + } + + [Test] + public void ComputeInheritedFeature_ThrowsNotSupportedException() + { + Assert.That(() => ((IType)null).ComputeInheritedFeature(), Throws.TypeOf()); + } + + [Test] + public void ComputeInheritedMembership_ThrowsNotSupportedException() + { + Assert.That(() => ((IType)null).ComputeInheritedMembership(), Throws.TypeOf()); + } + + [Test] + public void ComputeInput_ThrowsNotSupportedException() + { + Assert.That(() => ((IType)null).ComputeInput(), Throws.TypeOf()); + } + + [Test] + public void ComputeIntersectingType_ThrowsNotSupportedException() + { + Assert.That(() => ((IType)null).ComputeIntersectingType(), Throws.TypeOf()); + } + + [Test] + public void ComputeIsConjugated_ThrowsNotSupportedException() + { + Assert.That(() => ((IType)null).ComputeIsConjugated(), Throws.TypeOf()); + } + + [Test] + public void ComputeMultiplicity_ThrowsNotSupportedException() + { + Assert.That(() => ((IType)null).ComputeMultiplicity(), Throws.TypeOf()); + } + + [Test] + public void ComputeOutput_ThrowsNotSupportedException() + { + Assert.That(() => ((IType)null).ComputeOutput(), Throws.TypeOf()); + } + + [Test] + public void ComputeOwnedConjugator_ThrowsNotSupportedException() + { + Assert.That(() => ((IType)null).ComputeOwnedConjugator(), Throws.TypeOf()); + } + + [Test] + public void ComputeOwnedDifferencing_ThrowsNotSupportedException() + { + Assert.That(() => ((IType)null).ComputeOwnedDifferencing(), Throws.TypeOf()); + } + + [Test] + public void ComputeOwnedDisjoining_ThrowsNotSupportedException() + { + Assert.That(() => ((IType)null).ComputeOwnedDisjoining(), Throws.TypeOf()); + } + + [Test] + public void ComputeOwnedEndFeature_ThrowsNotSupportedException() + { + Assert.That(() => ((IType)null).ComputeOwnedEndFeature(), Throws.TypeOf()); + } + + [Test] + public void ComputeOwnedFeature_ThrowsNotSupportedException() + { + Assert.That(() => ((IType)null).ComputeOwnedFeature(), Throws.TypeOf()); + } + + [Test] + public void ComputeOwnedFeatureMembership_ThrowsNotSupportedException() + { + Assert.That(() => ((IType)null).ComputeOwnedFeatureMembership(), Throws.TypeOf()); + } + + [Test] + public void ComputeOwnedIntersecting_ThrowsNotSupportedException() + { + Assert.That(() => ((IType)null).ComputeOwnedIntersecting(), Throws.TypeOf()); + } + + [Test] + public void ComputeOwnedSpecialization_ThrowsNotSupportedException() + { + Assert.That(() => ((IType)null).ComputeOwnedSpecialization(), Throws.TypeOf()); + } + + [Test] + public void ComputeOwnedUnioning_ThrowsNotSupportedException() + { + Assert.That(() => ((IType)null).ComputeOwnedUnioning(), Throws.TypeOf()); + } + + [Test] + public void ComputeUnioningType_ThrowsNotSupportedException() + { + Assert.That(() => ((IType)null).ComputeUnioningType(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/TypeFeaturingExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/TypeFeaturingExtensionsTestFixture.cs new file mode 100644 index 00000000..df7d5e5b --- /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.That(() => ((ITypeFeaturing)null).ComputeOwningFeatureOfType(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/UnioningExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/UnioningExtensionsTestFixture.cs new file mode 100644 index 00000000..4e2ce3bd --- /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.That(() => ((IUnioning)null).ComputeTypeUnioned(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/UsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/UsageExtensionsTestFixture.cs new file mode 100644 index 00000000..ffbf1668 --- /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.That(() => ((IUsage)null).ComputeDefinition(), Throws.TypeOf()); + } + + [Test] + public void ComputeDirectedUsage_ThrowsNotSupportedException() + { + Assert.That(() => ((IUsage)null).ComputeDirectedUsage(), Throws.TypeOf()); + } + + [Test] + public void ComputeIsReference_ThrowsNotSupportedException() + { + Assert.That(() => ((IUsage)null).ComputeIsReference(), Throws.TypeOf()); + } + + [Test] + public void ComputeMayTimeVary_ThrowsNotSupportedException() + { + Assert.That(() => ((IUsage)null).ComputeMayTimeVary(), Throws.TypeOf()); + } + + [Test] + public void ComputeNestedAction_ThrowsNotSupportedException() + { + Assert.That(() => ((IUsage)null).ComputeNestedAction(), Throws.TypeOf()); + } + + [Test] + public void ComputeNestedAllocation_ThrowsNotSupportedException() + { + Assert.That(() => ((IUsage)null).ComputeNestedAllocation(), Throws.TypeOf()); + } + + [Test] + public void ComputeNestedAnalysisCase_ThrowsNotSupportedException() + { + Assert.That(() => ((IUsage)null).ComputeNestedAnalysisCase(), Throws.TypeOf()); + } + + [Test] + public void ComputeNestedAttribute_ThrowsNotSupportedException() + { + Assert.That(() => ((IUsage)null).ComputeNestedAttribute(), Throws.TypeOf()); + } + + [Test] + public void ComputeNestedCalculation_ThrowsNotSupportedException() + { + Assert.That(() => ((IUsage)null).ComputeNestedCalculation(), Throws.TypeOf()); + } + + [Test] + public void ComputeNestedCase_ThrowsNotSupportedException() + { + Assert.That(() => ((IUsage)null).ComputeNestedCase(), Throws.TypeOf()); + } + + [Test] + public void ComputeNestedConcern_ThrowsNotSupportedException() + { + Assert.That(() => ((IUsage)null).ComputeNestedConcern(), Throws.TypeOf()); + } + + [Test] + public void ComputeNestedConnection_ThrowsNotSupportedException() + { + Assert.That(() => ((IUsage)null).ComputeNestedConnection(), Throws.TypeOf()); + } + + [Test] + public void ComputeNestedConstraint_ThrowsNotSupportedException() + { + Assert.That(() => ((IUsage)null).ComputeNestedConstraint(), Throws.TypeOf()); + } + + [Test] + public void ComputeNestedEnumeration_ThrowsNotSupportedException() + { + Assert.That(() => ((IUsage)null).ComputeNestedEnumeration(), Throws.TypeOf()); + } + + [Test] + public void ComputeNestedFlow_ThrowsNotSupportedException() + { + Assert.That(() => ((IUsage)null).ComputeNestedFlow(), Throws.TypeOf()); + } + + [Test] + public void ComputeNestedInterface_ThrowsNotSupportedException() + { + Assert.That(() => ((IUsage)null).ComputeNestedInterface(), Throws.TypeOf()); + } + + [Test] + public void ComputeNestedItem_ThrowsNotSupportedException() + { + Assert.That(() => ((IUsage)null).ComputeNestedItem(), Throws.TypeOf()); + } + + [Test] + public void ComputeNestedMetadata_ThrowsNotSupportedException() + { + Assert.That(() => ((IUsage)null).ComputeNestedMetadata(), Throws.TypeOf()); + } + + [Test] + public void ComputeNestedOccurrence_ThrowsNotSupportedException() + { + Assert.That(() => ((IUsage)null).ComputeNestedOccurrence(), Throws.TypeOf()); + } + + [Test] + public void ComputeNestedPart_ThrowsNotSupportedException() + { + Assert.That(() => ((IUsage)null).ComputeNestedPart(), Throws.TypeOf()); + } + + [Test] + public void ComputeNestedPort_ThrowsNotSupportedException() + { + Assert.That(() => ((IUsage)null).ComputeNestedPort(), Throws.TypeOf()); + } + + [Test] + public void ComputeNestedReference_ThrowsNotSupportedException() + { + Assert.That(() => ((IUsage)null).ComputeNestedReference(), Throws.TypeOf()); + } + + [Test] + public void ComputeNestedRendering_ThrowsNotSupportedException() + { + Assert.That(() => ((IUsage)null).ComputeNestedRendering(), Throws.TypeOf()); + } + + [Test] + public void ComputeNestedRequirement_ThrowsNotSupportedException() + { + Assert.That(() => ((IUsage)null).ComputeNestedRequirement(), Throws.TypeOf()); + } + + [Test] + public void ComputeNestedState_ThrowsNotSupportedException() + { + Assert.That(() => ((IUsage)null).ComputeNestedState(), Throws.TypeOf()); + } + + [Test] + public void ComputeNestedTransition_ThrowsNotSupportedException() + { + Assert.That(() => ((IUsage)null).ComputeNestedTransition(), Throws.TypeOf()); + } + + [Test] + public void ComputeNestedUsage_ThrowsNotSupportedException() + { + Assert.That(() => ((IUsage)null).ComputeNestedUsage(), Throws.TypeOf()); + } + + [Test] + public void ComputeNestedUseCase_ThrowsNotSupportedException() + { + Assert.That(() => ((IUsage)null).ComputeNestedUseCase(), Throws.TypeOf()); + } + + [Test] + public void ComputeNestedVerificationCase_ThrowsNotSupportedException() + { + Assert.That(() => ((IUsage)null).ComputeNestedVerificationCase(), Throws.TypeOf()); + } + + [Test] + public void ComputeNestedView_ThrowsNotSupportedException() + { + Assert.That(() => ((IUsage)null).ComputeNestedView(), Throws.TypeOf()); + } + + [Test] + public void ComputeNestedViewpoint_ThrowsNotSupportedException() + { + Assert.That(() => ((IUsage)null).ComputeNestedViewpoint(), Throws.TypeOf()); + } + + [Test] + public void ComputeOwningDefinition_ThrowsNotSupportedException() + { + Assert.That(() => ((IUsage)null).ComputeOwningDefinition(), Throws.TypeOf()); + } + + [Test] + public void ComputeOwningUsage_ThrowsNotSupportedException() + { + Assert.That(() => ((IUsage)null).ComputeOwningUsage(), Throws.TypeOf()); + } + + [Test] + public void ComputeUsage_ThrowsNotSupportedException() + { + Assert.That(() => ((IUsage)null).ComputeUsage(), Throws.TypeOf()); + } + + [Test] + public void ComputeVariant_ThrowsNotSupportedException() + { + Assert.That(() => ((IUsage)null).ComputeVariant(), Throws.TypeOf()); + } + + [Test] + public void ComputeVariantMembership_ThrowsNotSupportedException() + { + Assert.That(() => ((IUsage)null).ComputeVariantMembership(), Throws.TypeOf()); + } + } +} + diff --git a/SysML2.NET.Tests/Extend/UseCaseDefinitionExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/UseCaseDefinitionExtensionsTestFixture.cs new file mode 100644 index 00000000..58362494 --- /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.That(() => ((IUseCaseDefinition)null).ComputeIncludedUseCase(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/UseCaseUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/UseCaseUsageExtensionsTestFixture.cs new file mode 100644 index 00000000..7878c0aa --- /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.That(() => ((IUseCaseUsage)null).ComputeIncludedUseCase(), Throws.TypeOf()); + } + [Test] + public void ComputeUseCaseDefinition_ThrowsNotSupportedException() + { + Assert.That(() => ((IUseCaseUsage)null).ComputeUseCaseDefinition(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/VariantMembershipExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/VariantMembershipExtensionsTestFixture.cs new file mode 100644 index 00000000..1247901a --- /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.That(() => ((IVariantMembership)null).ComputeOwnedVariantUsage(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/VerificationCaseDefinitionExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/VerificationCaseDefinitionExtensionsTestFixture.cs new file mode 100644 index 00000000..3a03998c --- /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.That(() => ((IVerificationCaseDefinition)null).ComputeVerifiedRequirement(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/VerificationCaseUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/VerificationCaseUsageExtensionsTestFixture.cs new file mode 100644 index 00000000..4686aa12 --- /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.That(() => ((IVerificationCaseUsage)null).ComputeVerificationCaseDefinition(), Throws.TypeOf()); + } + [Test] + public void ComputeVerifiedRequirement_ThrowsNotSupportedException() + { + Assert.That(() => ((IVerificationCaseUsage)null).ComputeVerifiedRequirement(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/ViewDefinitionExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ViewDefinitionExtensionsTestFixture.cs new file mode 100644 index 00000000..cf64bd5f --- /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.That(() => ((IViewDefinition)null).ComputeSatisfiedViewpoint(), Throws.TypeOf()); + } + + [Test] + public void ComputeView_ThrowsNotSupportedException() + { + Assert.That(() => ((IViewDefinition)null).ComputeView(), Throws.TypeOf()); + } + + [Test] + public void ComputeViewCondition_ThrowsNotSupportedException() + { + Assert.That(() => ((IViewDefinition)null).ComputeViewCondition(), Throws.TypeOf()); + } + + [Test] + public void ComputeViewRendering_ThrowsNotSupportedException() + { + Assert.That(() => ((IViewDefinition)null).ComputeViewRendering(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/ViewRenderingMembershipExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ViewRenderingMembershipExtensionsTestFixture.cs new file mode 100644 index 00000000..a3cbef04 --- /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.That(() => ((IViewRenderingMembership)null).ComputeOwnedRendering(), Throws.TypeOf()); + } + + [Test] + public void ComputeReferencedRendering_ThrowsNotSupportedException() + { + Assert.That(() => ((IViewRenderingMembership)null).ComputeReferencedRendering(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/ViewUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ViewUsageExtensionsTestFixture.cs new file mode 100644 index 00000000..8f990dd4 --- /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.That(() => ((IViewUsage)null).ComputeExposedElement(), Throws.TypeOf()); + } + [Test] + public void ComputeSatisfiedViewpoint_ThrowsNotSupportedException() + { + Assert.That(() => ((IViewUsage)null).ComputeSatisfiedViewpoint(), Throws.TypeOf()); + } + [Test] + public void ComputeViewCondition_ThrowsNotSupportedException() + { + Assert.That(() => ((IViewUsage)null).ComputeViewCondition(), Throws.TypeOf()); + } + [Test] + public void ComputeViewDefinition_ThrowsNotSupportedException() + { + Assert.That(() => ((IViewUsage)null).ComputeViewDefinition(), Throws.TypeOf()); + } + [Test] + public void ComputeViewRendering_ThrowsNotSupportedException() + { + Assert.That(() => ((IViewUsage)null).ComputeViewRendering(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/ViewpointDefinitionExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ViewpointDefinitionExtensionsTestFixture.cs new file mode 100644 index 00000000..8134b1b3 --- /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.That(() => ((IViewpointDefinition)null).ComputeViewpointStakeholder(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/ViewpointUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/ViewpointUsageExtensionsTestFixture.cs new file mode 100644 index 00000000..6beade63 --- /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.That(() => ((IViewpointUsage)null).ComputeViewpointDefinition(), Throws.TypeOf()); + } + + [Test] + public void ComputeViewpointStakeholder_ThrowsNotSupportedException() + { + Assert.That(() => ((IViewpointUsage)null).ComputeViewpointStakeholder(), Throws.TypeOf()); + } + } +} diff --git a/SysML2.NET.Tests/Extend/WhileLoopActionUsageExtensionsTestFixture.cs b/SysML2.NET.Tests/Extend/WhileLoopActionUsageExtensionsTestFixture.cs new file mode 100644 index 00000000..5a6d1a59 --- /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.That(() => ((IWhileLoopActionUsage)null).ComputeUntilArgument(), Throws.TypeOf()); + } + + [Test] + public void ComputeWhileArgument_ThrowsNotSupportedException() + { + Assert.That(() => ((IWhileLoopActionUsage)null).ComputeWhileArgument(), Throws.TypeOf()); + } + } +} 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