Skip to content

Unit Tests

Unit Tests #164

Manually triggered November 16, 2023 16:07
Status Success
Total duration 2m 56s
Artifacts

unit-test.yaml

on: workflow_dispatch
Fit to window
Zoom out
Zoom in

Annotations

16 warnings
unit-test: src/dscom/internal/structs/CUSTDATA.cs#L23
Member can be made 'readonly' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0251)
unit-test: src/dscom/RegistrationServices.cs#L194
'System.Reflection.Assembly.Location' always returns an empty string for assemblies embedded in a single-file app. If the path to the app directory is needed, consider calling 'System.AppContext.BaseDirectory'.
unit-test: src/dscom/RegistrationServices.cs#L201
'System.Reflection.Assembly.Location' always returns an empty string for assemblies embedded in a single-file app. If the path to the app directory is needed, consider calling 'System.AppContext.BaseDirectory'.
unit-test: src/dscom/internal/structs/CUSTDATA.cs#L23
Member can be made 'readonly' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0251)
unit-test: src/dscom/RegistrationServices.cs#L194
'System.Reflection.Assembly.Location' always returns an empty string for assemblies embedded in a single-file app. If the path to the app directory is needed, consider calling 'System.AppContext.BaseDirectory'.
unit-test: src/dscom/RegistrationServices.cs#L201
'System.Reflection.Assembly.Location' always returns an empty string for assemblies embedded in a single-file app. If the path to the app directory is needed, consider calling 'System.AppContext.BaseDirectory'.
unit-test: src/dscom/writer/InterfaceWriter.cs#L128
Change return type of method 'GetMethodNamesOfBaseTypeInfo' from 'System.Collections.Generic.IEnumerable<string>' to 'System.Collections.Generic.List<string>' for improved performance (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1859)
unit-test: src/dscom/names/SimpleNameResolver.cs#L21
Change type of field '_names' from 'System.Collections.Generic.IDictionary<string, string>' to 'System.Collections.Generic.Dictionary<string, string>' for improved performance (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1859)
unit-test: src/dscom/TypeInfoResolver.cs#L22
Change type of field '_typeLibs' from 'System.Collections.Generic.IDictionary<dSPACE.Runtime.InteropServices.TypeLibIdentifier, System.Runtime.InteropServices.ComTypes.ITypeLib>' to 'System.Collections.Generic.Dictionary<dSPACE.Runtime.InteropServices.TypeLibIdentifier, System.Runtime.InteropServices.ComTypes.ITypeLib>' for improved performance (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1859)
unit-test: src/dscom/internal/structs/CUSTDATA.cs#L23
Member can be made 'readonly' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0251)
unit-test: src/dscom/RegistrationServices.cs#L280
Change return type of method 'GetComRegistratableTypes' from 'System.Collections.Generic.IReadOnlyCollection<System.Type>' to 'System.Type[]' for improved performance (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1859)
unit-test: src/dscom/writer/InterfaceWriter.cs#L63
Use 'ObjectDisposedException.ThrowIf' instead of explicitly throwing a new exception instance (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1513)
unit-test: src/dscom/writer/LibraryWriter.cs#L44
Use 'ObjectDisposedException.ThrowIf' instead of explicitly throwing a new exception instance (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1513)
unit-test: src/dscom/writer/LibraryWriter.cs#L86
Use 'ObjectDisposedException.ThrowIf' instead of explicitly throwing a new exception instance (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1513)
unit-test: src/dscom/writer/InterfaceWriter.cs#L128
Change return type of method 'GetMethodNamesOfBaseTypeInfo' from 'System.Collections.Generic.IEnumerable<string>' to 'System.Collections.Generic.List<string>' for improved performance (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1859)
unit-test: src/dscom/RegistrationServices.cs#L182
Use 'ArgumentNullException.ThrowIfNull' instead of explicitly throwing a new exception instance (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1510)