Bump the verify group with 2 updates #361
Annotations
6 errors
|
🧪 Testing 4.8 code:
src/AutoCtor.Tests/ExampleTests.cs#L16
VerifyException : Directory: /home/runner/work/AutoCtor/AutoCtor/src/AutoCtor.Tests/Examples/Verified
NotEqual:
- Received: AmbiguousMarkedMethods.ExamplesGeneratedCode.received.txt
Verified: AmbiguousMarkedMethods.ExamplesGeneratedCode.verified.txt
Equal:
- Received: AmbiguousMarkedMethods.ExamplesGeneratedCode#AmbiguousMarkedMethods.g.received.cs
Verified: AmbiguousMarkedMethods.ExamplesGeneratedCode#AmbiguousMarkedMethods.g.verified.cs
FileContent:
NotEqual:
Received: AmbiguousMarkedMethods.ExamplesGeneratedCode.received.txt
{
Diagnostics: [
{
Location: /*
[AutoCtor.AutoPostConstruct]
private void Initialize()
^^^^^^^^^^
{
*/
: (6,17)-(6,27),
Message: Only one method in a type should be marked with an [AutoPostConstruct] attribute,
Severity: Warning,
WarningLevel: 1,
Descriptor: {
Id: ACTR001,
Title: Ambiguous marked post constructor method,
MessageFormat: Only one method in a type should be marked with an [AutoPostConstruct] attribute,
Category: AutoCtor,
DefaultSeverity: Warning,
IsEnabledByDefault: true
}
},
{
Location: /*
[AutoCtor.AutoPostConstruct]
private void Initialize(IB b)
^^^^^^^^^^
{
*/
: (11,17)-(11,27),
Message: Only one method in a type should be marked with an [AutoPostConstruct] attribute,
Severity: Warning,
WarningLevel: 1,
Descriptor: {
Id: ACTR001,
Title: Ambiguous marked post constructor method,
MessageFormat: Only one method in a type should be marked with an [AutoPostConstruct] attribute,
Category: AutoCtor,
DefaultSeverity: Warning,
IsEnabledByDefault: true
}
}
]
}
Verified: AmbiguousMarkedMethods.ExamplesGeneratedCode.verified.txt
{
Diagnostics: [
{
Id: ACTR001,
Title: Ambiguous marked post constructor method,
Severity: Warning,
WarningLevel: 1,
Location: : (6,17)-(6,27),
MessageFormat: Only one method in a type should be marked with an [AutoPostConstruct] attribute,
Message: Only one method in a type should be marked with an [AutoPostConstruct] attribute,
Category: AutoCtor
},
{
Id: ACTR001,
Title: Ambiguous marked post constructor method,
Severity: Warning,
WarningLevel: 1,
Location: : (11,17)-(11,27),
MessageFormat: Only one method in a type should be marked with an [AutoPostConstruct] attribute,
Message: Only one method in a type should be marked with an [AutoPostConstruct] attribute,
Category: AutoCtor
}
]
}
|
🧪 Testing 4.8 code:
src/AutoCtor.Tests/ExampleTests.cs#L16
VerifyException : Directory: /home/runner/work/AutoCtor/AutoCtor/src/AutoCtor.Tests/Examples/Verified
NotEqual:
- Received: PostCtorWithOptionalArgumentsTest.ExamplesGeneratedCode.received.txt
Verified: PostCtorWithOptionalArgumentsTest.ExamplesGeneratedCode.verified.txt
Equal:
- Received: PostCtorWithOptionalArgumentsTest.ExamplesGeneratedCode#PostCtorWithOptionalArgumentsTest.g.received.cs
Verified: PostCtorWithOptionalArgumentsTest.ExamplesGeneratedCode#PostCtorWithOptionalArgumentsTest.g.verified.cs
FileContent:
NotEqual:
Received: PostCtorWithOptionalArgumentsTest.ExamplesGeneratedCode.received.txt
{
Diagnostics: [
{
Location: /*
[AutoCtor.AutoPostConstruct]
private void Initialize(IB b = null)
^^^^^^^^^^
{
*/
: (6,17)-(6,27),
Message: The method 'PostCtorWithOptionalArgumentsTest.Initialize(IB)' must not have optional arguments to be used as the post construct method,
Severity: Warning,
WarningLevel: 1,
Descriptor: {
Id: ACTR003,
Title: Post construct method must not have any optional arguments,
MessageFormat: The method '{0}' must not have optional arguments to be used as the post construct method,
Category: AutoCtor,
DefaultSeverity: Warning,
IsEnabledByDefault: true
}
}
]
}
Verified: PostCtorWithOptionalArgumentsTest.ExamplesGeneratedCode.verified.txt
{
Diagnostics: [
{
Id: ACTR003,
Title: Post construct method must not have any optional arguments,
Severity: Warning,
WarningLevel: 1,
Location: : (6,17)-(6,27),
MessageFormat: The method '{0}' must not have optional arguments to be used as the post construct method,
Message: The method 'PostCtorWithOptionalArgumentsTest.Initialize(IB)' must not have optional arguments to be used as the post construct method,
Category: AutoCtor
}
]
}
|
🧪 Testing 4.8 code:
src/AutoCtor.Tests/ExampleTests.cs#L16
VerifyException : Directory: /home/runner/work/AutoCtor/AutoCtor/src/AutoCtor.Tests/Examples/Verified
NotEqual:
- Received: PostCtorWithGenericTest.ExamplesGeneratedCode.received.txt
Verified: PostCtorWithGenericTest.ExamplesGeneratedCode.verified.txt
Equal:
- Received: PostCtorWithGenericTest.ExamplesGeneratedCode#PostCtorWithGenericTest.g.received.cs
Verified: PostCtorWithGenericTest.ExamplesGeneratedCode#PostCtorWithGenericTest.g.verified.cs
FileContent:
NotEqual:
Received: PostCtorWithGenericTest.ExamplesGeneratedCode.received.txt
{
Diagnostics: [
{
Location: /*
[AutoCtor.AutoPostConstruct]
private void Initialize<T>(T t)
^^^^^^^^^^
{
*/
: (6,17)-(6,27),
Message: The method 'PostCtorWithGenericTest.Initialize<T>(T)' must not be generic to be used as the post construct method,
Severity: Warning,
WarningLevel: 1,
Descriptor: {
Id: ACTR004,
Title: Post construct method must not be generic,
MessageFormat: The method '{0}' must not be generic to be used as the post construct method,
Category: AutoCtor,
DefaultSeverity: Warning,
IsEnabledByDefault: true
}
}
]
}
Verified: PostCtorWithGenericTest.ExamplesGeneratedCode.verified.txt
{
Diagnostics: [
{
Id: ACTR004,
Title: Post construct method must not be generic,
Severity: Warning,
WarningLevel: 1,
Location: : (6,17)-(6,27),
MessageFormat: The method '{0}' must not be generic to be used as the post construct method,
Message: The method 'PostCtorWithGenericTest.Initialize<T>(T)' must not be generic to be used as the post construct method,
Category: AutoCtor
}
]
}
|
🧪 Testing 4.8 code:
src/AutoCtor.Tests/ExampleTests.cs#L16
VerifyException : Directory: /home/runner/work/AutoCtor/AutoCtor/src/AutoCtor.Tests/Examples/Verified
NotEqual:
- Received: PostCtorReturnsNonVoidTest.ExamplesGeneratedCode.received.txt
Verified: PostCtorReturnsNonVoidTest.ExamplesGeneratedCode.verified.txt
Equal:
- Received: PostCtorReturnsNonVoidTest.ExamplesGeneratedCode#PostCtorReturnsNonVoidTest.g.received.cs
Verified: PostCtorReturnsNonVoidTest.ExamplesGeneratedCode#PostCtorReturnsNonVoidTest.g.verified.cs
FileContent:
NotEqual:
Received: PostCtorReturnsNonVoidTest.ExamplesGeneratedCode.received.txt
{
Diagnostics: [
{
Location: /*
[AutoCtor.AutoPostConstruct]
private System.Threading.Tasks.Task InitAsync() => System.Threading.Tasks.Task.CompletedTask;
^^^^^^^^^
}
*/
: (6,40)-(6,49),
Message: The method 'PostCtorReturnsNonVoidTest.InitAsync()' must return void to be used as the post construct method,
Severity: Warning,
WarningLevel: 1,
Descriptor: {
Id: ACTR002,
Title: Post construct method must return void,
MessageFormat: The method '{0}' must return void to be used as the post construct method,
Category: AutoCtor,
DefaultSeverity: Warning,
IsEnabledByDefault: true
}
}
]
}
Verified: PostCtorReturnsNonVoidTest.ExamplesGeneratedCode.verified.txt
{
Diagnostics: [
{
Id: ACTR002,
Title: Post construct method must return void,
Severity: Warning,
WarningLevel: 1,
Location: : (6,40)-(6,49),
MessageFormat: The method '{0}' must return void to be used as the post construct method,
Message: The method 'PostCtorReturnsNonVoidTest.InitAsync()' must return void to be used as the post construct method,
Category: AutoCtor
}
]
}
|
🧪 Testing 4.8 code
The operation was canceled.
|
Loading