Skip to content

🩹 [Patch]: New Test, because a nullable string is not a thing... #160

@MariusStorhaug

Description

@MariusStorhaug

Describe the change

Exception             : 
    Type        : System.Management.Automation.RuntimeException
    ErrorRecord : 
        Exception             : 
            Type    : System.Management.Automation.ParentContainsErrorRecordException
            Message : Unable to find type [System.Nullable[string]]. Details: GenericArguments[0], 'System.String', on 'System.Nullable`1[T]' violates the constraint of type 'T'.
            HResult : -2146233087
        TargetObject          : System.Nullable[string]
        CategoryInfo          : InvalidOperation: (System.Nullable[string]:GenericTypeName) [], ParentContainsErrorRecordException
        FullyQualifiedErrorId : TypeNotFoundWithMessage
        InvocationInfo        : 
            ScriptLineNumber : 1
            OffsetInLine     : 2
            HistoryId        : 10
            Line             : [System.Nullable[string]] $PreviousAttemptUrl
            Statement        : System.Nullable[string]
            PositionMessage  : At line:1 char:2
                               + [System.Nullable[string]] $PreviousAttemptUrl
                               +  ~~~~~~~~~~~~~~~~~~~~~~~
            CommandOrigin    : Internal
        ScriptStackTrace      : at <ScriptBlock>, <No file>: line 1
    TargetSite  : 
        Name          : ResolveTypeName
        DeclaringType : [System.Management.Automation.TypeOps]
        MemberType    : Method
        Module        : System.Management.Automation.dll
    Message     : Unable to find type [System.Nullable[string]]. Details: GenericArguments[0], 'System.String', on 'System.Nullable`1[T]' violates the constraint of type 'T'.
    Data        : System.Collections.ListDictionaryInternal
    Source      : System.Management.Automation
    HResult     : -2146233087
    StackTrace  : 
   at System.Management.Automation.TypeOps.ResolveTypeName(ITypeName typeName, IScriptExtent errorPos)
   at System.Management.Automation.Interpreter.FuncCallInstruction`3.Run(InterpretedFrame frame)
   at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
TargetObject          : System.Nullable[string]
CategoryInfo          : InvalidOperation: (System.Nullable[string]:GenericTypeName) [], RuntimeException
FullyQualifiedErrorId : TypeNotFoundWithMessage
InvocationInfo        : 
    ScriptLineNumber : 1
    OffsetInLine     : 2
    HistoryId        : 10
    Line             : [System.Nullable[string]] $PreviousAttemptUrl
    Statement        : System.Nullable[string]
    PositionMessage  : At line:1 char:2
                       + [System.Nullable[string]] $PreviousAttemptUrl
                       +  ~~~~~~~~~~~~~~~~~~~~~~~
    CommandOrigin    : Internal
ScriptStackTrace      : at <ScriptBlock>, <No file>: line 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions