Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions SysML2.NET.Tests/Extend/AcceptActionUsageExtensionsTestFixture.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
// -------------------------------------------------------------------------------------------------
// <copyright file="AcceptActionUsageExtensionsTestFixture.cs" company="Starion Group S.A.">
//
// 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.
//
// </copyright>
// ------------------------------------------------------------------------------------------------

namespace SysML2.NET.Tests.Extend
{
using System;

using NUnit.Framework;

using SysML2.NET.Core.POCO.Systems.Actions;

[TestFixture]
public class AcceptActionUsageExtensionsTestFixture
{
[Test]
public void ComputePayloadArgument_ThrowsNotSupportedException()
{
Assert.Throws<NotSupportedException>(() => ((IAcceptActionUsage)null).ComputePayloadArgument());
}

[Test]
public void ComputePayloadParameter_ThrowsNotSupportedException()
{
Assert.Throws<NotSupportedException>(() => ((IAcceptActionUsage)null).ComputePayloadParameter());
}

[Test]
public void ComputeReceiverArgument_ThrowsNotSupportedException()
{
Assert.Throws<NotSupportedException>(() => ((IAcceptActionUsage)null).ComputeReceiverArgument());
}
}
}
38 changes: 38 additions & 0 deletions SysML2.NET.Tests/Extend/ActionDefinitionExtensionsTestFixture.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
// -------------------------------------------------------------------------------------------------
// <copyright file="ActionDefinitionExtensionsTestFixture.cs" company="Starion Group S.A.">
//
// 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.
//
// </copyright>
// ------------------------------------------------------------------------------------------------

namespace SysML2.NET.Tests.Extend
{
using System;

using NUnit.Framework;

using SysML2.NET.Core.POCO.Systems.Actions;

[TestFixture]
public class ActionDefinitionExtensionsTestFixture
{
[Test]
public void ComputeAction_ThrowsNotSupportedException()
{
Assert.Throws<NotSupportedException>(() => ((IActionDefinition)null).ComputeAction());
}
}
}
38 changes: 38 additions & 0 deletions SysML2.NET.Tests/Extend/ActionUsageExtensionsTestFixture.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
// -------------------------------------------------------------------------------------------------
// <copyright file="ActionUsageExtensionsTestFixture.cs" company="Starion Group S.A.">
//
// 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.
//
// </copyright>
// ------------------------------------------------------------------------------------------------

namespace SysML2.NET.Tests.Extend
{
using System;

using NUnit.Framework;

using SysML2.NET.Core.POCO.Systems.Actions;

[TestFixture]
public class ActionUsageExtensionsTestFixture
{
[Test]
public void ComputeActionDefinition_ThrowsNotSupportedException()
{
Assert.Throws<NotSupportedException>(() => ((IActionUsage)null).ComputeActionDefinition());
}
}
}
38 changes: 38 additions & 0 deletions SysML2.NET.Tests/Extend/ActorMembershipExtensionsTestFixture.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
// -------------------------------------------------------------------------------------------------
// <copyright file="ActorMembershipExtensionsTestFixture.cs" company="Starion Group S.A.">
//
// 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.
//
// </copyright>
// ------------------------------------------------------------------------------------------------

namespace SysML2.NET.Tests.Extend
{
using System;

using NUnit.Framework;

using SysML2.NET.Core.POCO.Systems.Requirements;

[TestFixture]
public class ActorMembershipExtensionsTestFixture
{
[Test]
public void ComputeOwnedActorParameter_ThrowsNotSupportedException()
{
Assert.Throws<NotSupportedException>(() => ((IActorMembership)null).ComputeOwnedActorParameter());
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
// -------------------------------------------------------------------------------------------------
// <copyright file="AllocationDefinitionExtensionsTestFixture.cs" company="Starion Group S.A.">
//
// 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.
//
// </copyright>
// ------------------------------------------------------------------------------------------------

namespace SysML2.NET.Tests.Extend
{
using System;

using NUnit.Framework;

using SysML2.NET.Core.POCO.Systems.Allocations;

[TestFixture]
public class AllocationDefinitionExtensionsTestFixture
{
[Test]
public void ComputeAllocation_ThrowsNotSupportedException()
{
Assert.Throws<NotSupportedException>(() => ((IAllocationDefinition)null).ComputeAllocation());
}
}
}
38 changes: 38 additions & 0 deletions SysML2.NET.Tests/Extend/AllocationUsageExtensionsTestFixture.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
// -------------------------------------------------------------------------------------------------
// <copyright file="AllocationDefinitionExtensionsTestFixture.cs" company="Starion Group S.A.">
//
// 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.
//
// </copyright>
// ------------------------------------------------------------------------------------------------

namespace SysML2.NET.Tests.Extend
{
using System;

using NUnit.Framework;

using SysML2.NET.Core.POCO.Systems.Allocations;

[TestFixture]
public class AllocationUsageExtensionsTestFixture
{
[Test]
public void ComputeAllocationDefinition_ThrowsNotSupportedException()
{
Assert.Throws<NotSupportedException>(() => ((IAllocationUsage)null).ComputeAllocationDefinition());
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
// -------------------------------------------------------------------------------------------------
// <copyright file="AnalysisCaseDefinitionExtensionsTestFixture.cs" company="Starion Group S.A.">
//
// 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.
//
// </copyright>
// ------------------------------------------------------------------------------------------------

namespace SysML2.NET.Tests.Extend
{
using System;

using NUnit.Framework;

using SysML2.NET.Core.POCO.Systems.AnalysisCases;

[TestFixture]
public class AnalysisCaseDefinitionExtensionsTestFixture
{
[Test]
public void ComputeResultExpression_ThrowsNotSupportedException()
{
Assert.Throws<NotSupportedException>(() => ((IAnalysisCaseDefinition)null).ComputeResultExpression());
}
}
}
44 changes: 44 additions & 0 deletions SysML2.NET.Tests/Extend/AnalysisCaseUsageExtensionsTestFixture.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
// -------------------------------------------------------------------------------------------------
// <copyright file="AnalysisCaseUsageExtensionsTestFixture.cs" company="Starion Group S.A.">
//
// 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.
//
// </copyright>
// ------------------------------------------------------------------------------------------------

namespace SysML2.NET.Tests.Extend
{
using System;

using NUnit.Framework;

using SysML2.NET.Core.POCO.Systems.AnalysisCases;

[TestFixture]
public class AnalysisCaseUsageExtensionsTestFixture
{
[Test]
public void ComputeAnalysisCaseDefinition_ThrowsNotSupportedException()
{
Assert.Throws<NotSupportedException>(() => ((IAnalysisCaseUsage)null).ComputeAnalysisCaseDefinition());
}

[Test]
public void ComputeResultExpression_ThrowsNotSupportedException()
{
Assert.Throws<NotSupportedException>(() => ((IAnalysisCaseUsage)null).ComputeResultExpression());
}
}
}
56 changes: 56 additions & 0 deletions SysML2.NET.Tests/Extend/AnnotatingElementExtensionsTestFixture.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
// -------------------------------------------------------------------------------------------------
// <copyright file="AnnotatingElementExtensionsTestFixture.cs" company="Starion Group S.A.">
//
// 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.
//
// </copyright>
// ------------------------------------------------------------------------------------------------

namespace SysML2.NET.Tests.Extend
{
using System;

using NUnit.Framework;

using SysML2.NET.Core.POCO.Root.Annotations;

[TestFixture]
public class AnnotatingElementExtensionsTestFixture
{
[Test]
public void ComputeAnnotatedElement_ThrowsNotSupportedException()
{
Assert.Throws<NotSupportedException>(() => ((IAnnotatingElement)null).ComputeAnnotatedElement());
}

[Test]
public void ComputeAnnotation_ThrowsNotSupportedException()
{
Assert.Throws<NotSupportedException>(() => ((IAnnotatingElement)null).ComputeAnnotation());
}

[Test]
public void ComputeOwnedAnnotatingRelationship_ThrowsNotSupportedException()
{
Assert.Throws<NotSupportedException>(() => ((IAnnotatingElement)null).ComputeOwnedAnnotatingRelationship());
}

[Test]
public void ComputeOwningAnnotatingRelationship_ThrowsNotSupportedException()
{
Assert.Throws<NotSupportedException>(() => ((IAnnotatingElement)null).ComputeOwningAnnotatingRelationship());
}
}
}
Loading
Loading