You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have verified that I am running the latest version of the SysML2.NET
I have searched open and closed issues to ensure it has not already been reported
Description
Some derived properties/operation are subsets of collection properties. For those that have the multiplicity as [1..1], a specific call to the RequiredSingleTypeOf method is applied to make sure to have one single element that matches.
When the multiplicity is [0..1], most of implementation uses naively the FirstOfDefault() from LinQ method that would silently accepts if the collection contains many elements that matches a predicate.
A new extension method that would be the sibling of RequiredSingleTypeOf but allowing default value shall be implemented. Current implemented extend methods that violates the rules has to be fixed
Steps to Reproduce
System Configuration
SysML2.NET version:
Environment (Operating system, version and so on):
Activity
Fix #312: enforce multiplicity on all patterns
Fix #312: enforce multiplicity on all patterns (#313)