Skip to content

Remove unsupported frameworks from the tests #1177

Remove unsupported frameworks from the tests

Remove unsupported frameworks from the tests #1177

Triggered via pull request September 26, 2024 15:56
Status Failure
Total duration 15m 51s
Artifacts

build.yaml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
SnapshotTests.BugFixes.Bug597_STJ_being_emitted_even_with_no_conversions_specified.Omitted_if_stj_package_not_referenced
VerifyException : Directory: D:\a\Vogen\Vogen\tests\SnapshotTests\BugFixes\snapshots\snap-v4.8 New: - Received: Bug597_STJ_being_emitted_even_with_no_conversions_specified.Omitted_if_stj_package_not_referenced.received.txt Verified: Bug597_STJ_being_emitted_even_with_no_conversions_specified.Omitted_if_stj_package_not_referenced.verified.txt FileContent: New: Received: Bug597_STJ_being_emitted_even_with_no_conversions_specified.Omitted_if_stj_package_not_referenced.received.txt [ // ------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a source generator named Vogen (https://github.com/SteveDunn/Vogen) // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> // ------------------------------------------------------------------------------ // Suppress warnings about [Obsolete] member usage in generated code. #pragma warning disable CS0618 // Suppress warnings for 'Override methods on comparable types'. #pragma warning disable CA1036 // Suppress Error MA0097 : A class that implements IComparable<T> or IComparable should override comparison operators #pragma warning disable MA0097 // Suppress warning for 'The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source.' // The generator copies signatures from the BCL, e.g. for `TryParse`, and some of those have nullable annotations. #pragma warning disable CS8669, CS8632 // Suppress warnings about CS1591: Missing XML comment for publicly visible type or member 'Type_or_Member' #pragma warning disable CS1591 [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Vogen", "1.0.0.0")] [global::System.Diagnostics.DebuggerTypeProxyAttribute(typeof(VoDebugView))] [global::System.Diagnostics.DebuggerDisplayAttribute("Underlying type: System.Int32, Value = { _value }")] // ReSharper disable once UnusedType.Global public partial struct Vo : global::System.IEquatable<Vo>, global::System.IEquatable<System.Int32>, global::System.IComparable<Vo>, global::System.IComparable { #if DEBUG private readonly global::System.Diagnostics.StackTrace _stackTrace = null!; #endif #if !VOGEN_NO_VALIDATION private readonly global::System.Boolean _isInitialized; #endif private readonly System.Int32 _value; /// <summary> /// Gets the underlying <see cref = "System.Int32"/> value if set, otherwise a <see cref = "Vogen.ValueObjectValidationException"/> is thrown. /// </summary> public readonly System.Int32 Value { [global::System.Diagnostics.DebuggerStepThroughAttribute] [global::System.Runtime.CompilerServices.MethodImpl(global::System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] get { EnsureInitialized(); return _value; } } [global::System.Diagnostics.DebuggerStepThroughAttribute] [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] public Vo() { #if DEBUG _stackTrace = new global::System.Diagnostics.StackTrace(); #endif #if !VOGEN_NO_VALIDATION _isInitialized = false; #endif _value = default; } [global::System.Diagnostics.DebuggerStepThroughAttribute] private Vo(System.Int32 value) { _value = value; #if !VOGEN_NO_VALIDATION _isInitialized = true; #endif } /// <summary> /// Builds an instance from the provided underlying type. /// </summary> /// <param name = "value">The underlying type.</param> /// <returns>An instance of this type.</returns> [global::System.Runtime.CompilerServices.MethodImpl(global::System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public static Vo From(System.Int32 value) { return new Vo(value); } /// <summary>
SnapshotTests.GenericAttributeTests.Produces_instances_with_derived_attribute
VerifyException : Directory: D:\a\Vogen\Vogen\tests\SnapshotTests\snapshots\snap-v8.0 New: - Received: GenericAttributeTests.Produces_instances_with_derived_attribute.received.txt Verified: GenericAttributeTests.Produces_instances_with_derived_attribute.verified.txt FileContent: New: Received: GenericAttributeTests.Produces_instances_with_derived_attribute.received.txt [ // ------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a source generator named Vogen (https://github.com/SteveDunn/Vogen) // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> // ------------------------------------------------------------------------------ // Suppress warnings about [Obsolete] member usage in generated code. #pragma warning disable CS0618 // Suppress warnings for 'Override methods on comparable types'. #pragma warning disable CA1036 // Suppress Error MA0097 : A class that implements IComparable<T> or IComparable should override comparison operators #pragma warning disable MA0097 // Suppress warning for 'The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source.' // The generator copies signatures from the BCL, e.g. for `TryParse`, and some of those have nullable annotations. #pragma warning disable CS8669, CS8632 // Suppress warnings about CS1591: Missing XML comment for publicly visible type or member 'Type_or_Member' #pragma warning disable CS1591 namespace generator; public class VogenTypesFactory : global::System.Text.Json.Serialization.JsonConverterFactory { public VogenTypesFactory() { } private static readonly global::System.Collections.Generic.Dictionary<global::System.Type, global::System.Lazy<global::System.Text.Json.Serialization.JsonConverter>> _lookup = new global::System.Collections.Generic.Dictionary<global::System.Type, global::System.Lazy<global::System.Text.Json.Serialization.JsonConverter>> { { typeof(global::Whatever.CustomerId), new global::System.Lazy<global::System.Text.Json.Serialization.JsonConverter>(() => new global::Whatever.CustomerId.CustomerIdSystemTextJsonConverter()) } }; public override bool CanConvert(global::System.Type typeToConvert) => _lookup.ContainsKey(typeToConvert); public override global::System.Text.Json.Serialization.JsonConverter CreateConverter(global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) => _lookup[typeToConvert].Value; } // ------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a source generator named Vogen (https://github.com/SteveDunn/Vogen) // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> // ------------------------------------------------------------------------------ // Suppress warnings about [Obsolete] member usage in generated code. #pragma warning disable CS0618 // Suppress warnings for 'Override methods on comparable types'. #pragma warning disable CA1036 // Suppress Error MA0097 : A class that implements IComparable<T> or IComparable should override comparison operators #pragma warning disable MA0097 // Suppress warning for 'The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source.' // The generator copies signatures from the BCL, e.g. for `TryParse`, and some of those have nullable annotations. #pragma warning disable CS8669, CS8632 // Suppress warnings about CS1591: Missing XML comment for publicly visible type or member 'Type_or_Member' #pragma warning disable CS1591 namespace Whatever { [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] [
SnapshotTests.GenericAttributeTests.Instance_names_can_have_reserved_keywords
VerifyException : Directory: D:\a\Vogen\Vogen\tests\SnapshotTests\snapshots\snap-v8.0 New: - Received: GenericAttributeTests.Instance_names_can_have_reserved_keywords.received.txt Verified: GenericAttributeTests.Instance_names_can_have_reserved_keywords.verified.txt FileContent: New: Received: GenericAttributeTests.Instance_names_can_have_reserved_keywords.received.txt [ // ------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a source generator named Vogen (https://github.com/SteveDunn/Vogen) // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> // ------------------------------------------------------------------------------ // Suppress warnings about [Obsolete] member usage in generated code. #pragma warning disable CS0618 // Suppress warnings for 'Override methods on comparable types'. #pragma warning disable CA1036 // Suppress Error MA0097 : A class that implements IComparable<T> or IComparable should override comparison operators #pragma warning disable MA0097 // Suppress warning for 'The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source.' // The generator copies signatures from the BCL, e.g. for `TryParse`, and some of those have nullable annotations. #pragma warning disable CS8669, CS8632 // Suppress warnings about CS1591: Missing XML comment for publicly visible type or member 'Type_or_Member' #pragma warning disable CS1591 namespace generator; public class VogenTypesFactory : global::System.Text.Json.Serialization.JsonConverterFactory { public VogenTypesFactory() { } private static readonly global::System.Collections.Generic.Dictionary<global::System.Type, global::System.Lazy<global::System.Text.Json.Serialization.JsonConverter>> _lookup = new global::System.Collections.Generic.Dictionary<global::System.Type, global::System.Lazy<global::System.Text.Json.Serialization.JsonConverter>> { { typeof(global::Whatever.CustomerId), new global::System.Lazy<global::System.Text.Json.Serialization.JsonConverter>(() => new global::Whatever.CustomerId.CustomerIdSystemTextJsonConverter()) } }; public override bool CanConvert(global::System.Type typeToConvert) => _lookup.ContainsKey(typeToConvert); public override global::System.Text.Json.Serialization.JsonConverter CreateConverter(global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) => _lookup[typeToConvert].Value; } // ------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a source generator named Vogen (https://github.com/SteveDunn/Vogen) // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> // ------------------------------------------------------------------------------ // Suppress warnings about [Obsolete] member usage in generated code. #pragma warning disable CS0618 // Suppress warnings for 'Override methods on comparable types'. #pragma warning disable CA1036 // Suppress Error MA0097 : A class that implements IComparable<T> or IComparable should override comparison operators #pragma warning disable MA0097 // Suppress warning for 'The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source.' // The generator copies signatures from the BCL, e.g. for `TryParse`, and some of those have nullable annotations. #pragma warning disable CS8669, CS8632 // Suppress warnings about CS1591: Missing XML comment for publicly visible type or member 'Type_or_Member' #pragma warning disable CS1591 namespace Whatever { [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] [
SnapshotTests.GenericAttributeTests.Validation_with_PascalCased_validate_method
VerifyException : Directory: D:\a\Vogen\Vogen\tests\SnapshotTests\snapshots\snap-v8.0 New: - Received: GenericAttributeTests.Validation_with_PascalCased_validate_method.received.txt Verified: GenericAttributeTests.Validation_with_PascalCased_validate_method.verified.txt FileContent: New: Received: GenericAttributeTests.Validation_with_PascalCased_validate_method.received.txt [ // ------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a source generator named Vogen (https://github.com/SteveDunn/Vogen) // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> // ------------------------------------------------------------------------------ // Suppress warnings about [Obsolete] member usage in generated code. #pragma warning disable CS0618 // Suppress warnings for 'Override methods on comparable types'. #pragma warning disable CA1036 // Suppress Error MA0097 : A class that implements IComparable<T> or IComparable should override comparison operators #pragma warning disable MA0097 // Suppress warning for 'The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source.' // The generator copies signatures from the BCL, e.g. for `TryParse`, and some of those have nullable annotations. #pragma warning disable CS8669, CS8632 // Suppress warnings about CS1591: Missing XML comment for publicly visible type or member 'Type_or_Member' #pragma warning disable CS1591 namespace generator; public class VogenTypesFactory : global::System.Text.Json.Serialization.JsonConverterFactory { public VogenTypesFactory() { } private static readonly global::System.Collections.Generic.Dictionary<global::System.Type, global::System.Lazy<global::System.Text.Json.Serialization.JsonConverter>> _lookup = new global::System.Collections.Generic.Dictionary<global::System.Type, global::System.Lazy<global::System.Text.Json.Serialization.JsonConverter>> { { typeof(global::Whatever.CustomerId), new global::System.Lazy<global::System.Text.Json.Serialization.JsonConverter>(() => new global::Whatever.CustomerId.CustomerIdSystemTextJsonConverter()) } }; public override bool CanConvert(global::System.Type typeToConvert) => _lookup.ContainsKey(typeToConvert); public override global::System.Text.Json.Serialization.JsonConverter CreateConverter(global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) => _lookup[typeToConvert].Value; } // ------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a source generator named Vogen (https://github.com/SteveDunn/Vogen) // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> // ------------------------------------------------------------------------------ // Suppress warnings about [Obsolete] member usage in generated code. #pragma warning disable CS0618 // Suppress warnings for 'Override methods on comparable types'. #pragma warning disable CA1036 // Suppress Error MA0097 : A class that implements IComparable<T> or IComparable should override comparison operators #pragma warning disable MA0097 // Suppress warning for 'The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source.' // The generator copies signatures from the BCL, e.g. for `TryParse`, and some of those have nullable annotations. #pragma warning disable CS8669, CS8632 // Suppress warnings about CS1591: Missing XML comment for publicly visible type or member 'Type_or_Member' #pragma warning disable CS1591 namespace Whatever { [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
SnapshotTests.GenericAttributeTests.Namespace_names_can_have_reserved_keywords
VerifyException : Directory: D:\a\Vogen\Vogen\tests\SnapshotTests\snapshots\snap-v8.0 New: - Received: GenericAttributeTests.Namespace_names_can_have_reserved_keywords.received.txt Verified: GenericAttributeTests.Namespace_names_can_have_reserved_keywords.verified.txt FileContent: New: Received: GenericAttributeTests.Namespace_names_can_have_reserved_keywords.received.txt [ // ------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a source generator named Vogen (https://github.com/SteveDunn/Vogen) // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> // ------------------------------------------------------------------------------ // Suppress warnings about [Obsolete] member usage in generated code. #pragma warning disable CS0618 // Suppress warnings for 'Override methods on comparable types'. #pragma warning disable CA1036 // Suppress Error MA0097 : A class that implements IComparable<T> or IComparable should override comparison operators #pragma warning disable MA0097 // Suppress warning for 'The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source.' // The generator copies signatures from the BCL, e.g. for `TryParse`, and some of those have nullable annotations. #pragma warning disable CS8669, CS8632 // Suppress warnings about CS1591: Missing XML comment for publicly visible type or member 'Type_or_Member' #pragma warning disable CS1591 namespace generator; public class VogenTypesFactory : global::System.Text.Json.Serialization.JsonConverterFactory { public VogenTypesFactory() { } private static readonly global::System.Collections.Generic.Dictionary<global::System.Type, global::System.Lazy<global::System.Text.Json.Serialization.JsonConverter>> _lookup = new global::System.Collections.Generic.Dictionary<global::System.Type, global::System.Lazy<global::System.Text.Json.Serialization.JsonConverter>> { { typeof(global::@double.@Class), new global::System.Lazy<global::System.Text.Json.Serialization.JsonConverter>(() => new global::@double.@Class.@classSystemTextJsonConverter()) } }; public override bool CanConvert(global::System.Type typeToConvert) => _lookup.ContainsKey(typeToConvert); public override global::System.Text.Json.Serialization.JsonConverter CreateConverter(global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) => _lookup[typeToConvert].Value; } // ------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a source generator named Vogen (https://github.com/SteveDunn/Vogen) // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> // ------------------------------------------------------------------------------ // Suppress warnings about [Obsolete] member usage in generated code. #pragma warning disable CS0618 // Suppress warnings for 'Override methods on comparable types'. #pragma warning disable CA1036 // Suppress Error MA0097 : A class that implements IComparable<T> or IComparable should override comparison operators #pragma warning disable MA0097 // Suppress warning for 'The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source.' // The generator copies signatures from the BCL, e.g. for `TryParse`, and some of those have nullable annotations. #pragma warning disable CS8669, CS8632 // Suppress warnings about CS1591: Missing XML comment for publicly visible type or member 'Type_or_Member' #pragma warning disable CS1591 namespace @double { [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] [global::Syst
SnapshotTests.GenericAttributeTests.Produces_instances
VerifyException : Directory: D:\a\Vogen\Vogen\tests\SnapshotTests\snapshots\snap-v8.0 New: - Received: GenericAttributeTests.Produces_instances.received.txt Verified: GenericAttributeTests.Produces_instances.verified.txt FileContent: New: Received: GenericAttributeTests.Produces_instances.received.txt [ // ------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a source generator named Vogen (https://github.com/SteveDunn/Vogen) // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> // ------------------------------------------------------------------------------ // Suppress warnings about [Obsolete] member usage in generated code. #pragma warning disable CS0618 // Suppress warnings for 'Override methods on comparable types'. #pragma warning disable CA1036 // Suppress Error MA0097 : A class that implements IComparable<T> or IComparable should override comparison operators #pragma warning disable MA0097 // Suppress warning for 'The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source.' // The generator copies signatures from the BCL, e.g. for `TryParse`, and some of those have nullable annotations. #pragma warning disable CS8669, CS8632 // Suppress warnings about CS1591: Missing XML comment for publicly visible type or member 'Type_or_Member' #pragma warning disable CS1591 namespace generator; public class VogenTypesFactory : global::System.Text.Json.Serialization.JsonConverterFactory { public VogenTypesFactory() { } private static readonly global::System.Collections.Generic.Dictionary<global::System.Type, global::System.Lazy<global::System.Text.Json.Serialization.JsonConverter>> _lookup = new global::System.Collections.Generic.Dictionary<global::System.Type, global::System.Lazy<global::System.Text.Json.Serialization.JsonConverter>> { { typeof(global::Whatever.CustomerId), new global::System.Lazy<global::System.Text.Json.Serialization.JsonConverter>(() => new global::Whatever.CustomerId.CustomerIdSystemTextJsonConverter()) } }; public override bool CanConvert(global::System.Type typeToConvert) => _lookup.ContainsKey(typeToConvert); public override global::System.Text.Json.Serialization.JsonConverter CreateConverter(global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) => _lookup[typeToConvert].Value; } // ------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a source generator named Vogen (https://github.com/SteveDunn/Vogen) // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> // ------------------------------------------------------------------------------ // Suppress warnings about [Obsolete] member usage in generated code. #pragma warning disable CS0618 // Suppress warnings for 'Override methods on comparable types'. #pragma warning disable CA1036 // Suppress Error MA0097 : A class that implements IComparable<T> or IComparable should override comparison operators #pragma warning disable MA0097 // Suppress warning for 'The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source.' // The generator copies signatures from the BCL, e.g. for `TryParse`, and some of those have nullable annotations. #pragma warning disable CS8669, CS8632 // Suppress warnings about CS1591: Missing XML comment for publicly visible type or member 'Type_or_Member' #pragma warning disable CS1591 namespace Whatever { [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Vogen", "1.0.
SnapshotTests.GenericAttributeTests.Partial_struct_created_successfully
VerifyException : Directory: D:\a\Vogen\Vogen\tests\SnapshotTests\snapshots\snap-v8.0 New: - Received: GenericAttributeTests.Partial_struct_created_successfully.received.txt Verified: GenericAttributeTests.Partial_struct_created_successfully.verified.txt FileContent: New: Received: GenericAttributeTests.Partial_struct_created_successfully.received.txt [ // ------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a source generator named Vogen (https://github.com/SteveDunn/Vogen) // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> // ------------------------------------------------------------------------------ // Suppress warnings about [Obsolete] member usage in generated code. #pragma warning disable CS0618 // Suppress warnings for 'Override methods on comparable types'. #pragma warning disable CA1036 // Suppress Error MA0097 : A class that implements IComparable<T> or IComparable should override comparison operators #pragma warning disable MA0097 // Suppress warning for 'The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source.' // The generator copies signatures from the BCL, e.g. for `TryParse`, and some of those have nullable annotations. #pragma warning disable CS8669, CS8632 // Suppress warnings about CS1591: Missing XML comment for publicly visible type or member 'Type_or_Member' #pragma warning disable CS1591 namespace generator; public class VogenTypesFactory : global::System.Text.Json.Serialization.JsonConverterFactory { public VogenTypesFactory() { } private static readonly global::System.Collections.Generic.Dictionary<global::System.Type, global::System.Lazy<global::System.Text.Json.Serialization.JsonConverter>> _lookup = new global::System.Collections.Generic.Dictionary<global::System.Type, global::System.Lazy<global::System.Text.Json.Serialization.JsonConverter>> { { typeof(global::Whatever.CustomerId), new global::System.Lazy<global::System.Text.Json.Serialization.JsonConverter>(() => new global::Whatever.CustomerId.CustomerIdSystemTextJsonConverter()) } }; public override bool CanConvert(global::System.Type typeToConvert) => _lookup.ContainsKey(typeToConvert); public override global::System.Text.Json.Serialization.JsonConverter CreateConverter(global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) => _lookup[typeToConvert].Value; } // ------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a source generator named Vogen (https://github.com/SteveDunn/Vogen) // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> // ------------------------------------------------------------------------------ // Suppress warnings about [Obsolete] member usage in generated code. #pragma warning disable CS0618 // Suppress warnings for 'Override methods on comparable types'. #pragma warning disable CA1036 // Suppress Error MA0097 : A class that implements IComparable<T> or IComparable should override comparison operators #pragma warning disable MA0097 // Suppress warning for 'The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source.' // The generator copies signatures from the BCL, e.g. for `TryParse`, and some of those have nullable annotations. #pragma warning disable CS8669, CS8632 // Suppress warnings about CS1591: Missing XML comment for publicly visible type or member 'Type_or_Member' #pragma warning disable CS1591 namespace Whatever { [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] [global::System.Cod
SnapshotTests.GenericAttributeTests.No_namespace
VerifyException : Directory: D:\a\Vogen\Vogen\tests\SnapshotTests\snapshots\snap-v8.0 New: - Received: GenericAttributeTests.No_namespace.received.txt Verified: GenericAttributeTests.No_namespace.verified.txt FileContent: New: Received: GenericAttributeTests.No_namespace.received.txt [ // ------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a source generator named Vogen (https://github.com/SteveDunn/Vogen) // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> // ------------------------------------------------------------------------------ // Suppress warnings about [Obsolete] member usage in generated code. #pragma warning disable CS0618 // Suppress warnings for 'Override methods on comparable types'. #pragma warning disable CA1036 // Suppress Error MA0097 : A class that implements IComparable<T> or IComparable should override comparison operators #pragma warning disable MA0097 // Suppress warning for 'The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source.' // The generator copies signatures from the BCL, e.g. for `TryParse`, and some of those have nullable annotations. #pragma warning disable CS8669, CS8632 // Suppress warnings about CS1591: Missing XML comment for publicly visible type or member 'Type_or_Member' #pragma warning disable CS1591 namespace generator; public class VogenTypesFactory : global::System.Text.Json.Serialization.JsonConverterFactory { public VogenTypesFactory() { } private static readonly global::System.Collections.Generic.Dictionary<global::System.Type, global::System.Lazy<global::System.Text.Json.Serialization.JsonConverter>> _lookup = new global::System.Collections.Generic.Dictionary<global::System.Type, global::System.Lazy<global::System.Text.Json.Serialization.JsonConverter>> { { typeof(CustomerId), new global::System.Lazy<global::System.Text.Json.Serialization.JsonConverter>(() => new CustomerId.CustomerIdSystemTextJsonConverter()) } }; public override bool CanConvert(global::System.Type typeToConvert) => _lookup.ContainsKey(typeToConvert); public override global::System.Text.Json.Serialization.JsonConverter CreateConverter(global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) => _lookup[typeToConvert].Value; } // ------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a source generator named Vogen (https://github.com/SteveDunn/Vogen) // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> // ------------------------------------------------------------------------------ // Suppress warnings about [Obsolete] member usage in generated code. #pragma warning disable CS0618 // Suppress warnings for 'Override methods on comparable types'. #pragma warning disable CA1036 // Suppress Error MA0097 : A class that implements IComparable<T> or IComparable should override comparison operators #pragma warning disable MA0097 // Suppress warning for 'The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source.' // The generator copies signatures from the BCL, e.g. for `TryParse`, and some of those have nullable annotations. #pragma warning disable CS8669, CS8632 // Suppress warnings about CS1591: Missing XML comment for publicly visible type or member 'Type_or_Member' #pragma warning disable CS1591 [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Vogen", "1.0.0.0")] [global::System.Text.Json.Serialization.JsonConverter(typeof(CustomerIdSys
SnapshotTests.GenericAttributeTests.Validation_with_camelCased_validate_method
VerifyException : Directory: D:\a\Vogen\Vogen\tests\SnapshotTests\snapshots\snap-v8.0 New: - Received: GenericAttributeTests.Validation_with_camelCased_validate_method.received.txt Verified: GenericAttributeTests.Validation_with_camelCased_validate_method.verified.txt FileContent: New: Received: GenericAttributeTests.Validation_with_camelCased_validate_method.received.txt [ // ------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a source generator named Vogen (https://github.com/SteveDunn/Vogen) // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> // ------------------------------------------------------------------------------ // Suppress warnings about [Obsolete] member usage in generated code. #pragma warning disable CS0618 // Suppress warnings for 'Override methods on comparable types'. #pragma warning disable CA1036 // Suppress Error MA0097 : A class that implements IComparable<T> or IComparable should override comparison operators #pragma warning disable MA0097 // Suppress warning for 'The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source.' // The generator copies signatures from the BCL, e.g. for `TryParse`, and some of those have nullable annotations. #pragma warning disable CS8669, CS8632 // Suppress warnings about CS1591: Missing XML comment for publicly visible type or member 'Type_or_Member' #pragma warning disable CS1591 namespace generator; public class VogenTypesFactory : global::System.Text.Json.Serialization.JsonConverterFactory { public VogenTypesFactory() { } private static readonly global::System.Collections.Generic.Dictionary<global::System.Type, global::System.Lazy<global::System.Text.Json.Serialization.JsonConverter>> _lookup = new global::System.Collections.Generic.Dictionary<global::System.Type, global::System.Lazy<global::System.Text.Json.Serialization.JsonConverter>> { { typeof(global::Whatever.CustomerId), new global::System.Lazy<global::System.Text.Json.Serialization.JsonConverter>(() => new global::Whatever.CustomerId.CustomerIdSystemTextJsonConverter()) } }; public override bool CanConvert(global::System.Type typeToConvert) => _lookup.ContainsKey(typeToConvert); public override global::System.Text.Json.Serialization.JsonConverter CreateConverter(global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) => _lookup[typeToConvert].Value; } // ------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a source generator named Vogen (https://github.com/SteveDunn/Vogen) // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> // ------------------------------------------------------------------------------ // Suppress warnings about [Obsolete] member usage in generated code. #pragma warning disable CS0618 // Suppress warnings for 'Override methods on comparable types'. #pragma warning disable CA1036 // Suppress Error MA0097 : A class that implements IComparable<T> or IComparable should override comparison operators #pragma warning disable MA0097 // Suppress warning for 'The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source.' // The generator copies signatures from the BCL, e.g. for `TryParse`, and some of those have nullable annotations. #pragma warning disable CS8669, CS8632 // Suppress warnings about CS1591: Missing XML comment for publicly visible type or member 'Type_or_Member' #pragma warning disable CS1591 namespace Whatever { [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
SnapshotTests.Parsing.ParsingTestsForStrings.Generates_IParsable_except_if_it_is_already_specified
Expected diagnostics to be empty because the following source code should compile on Net6_0: using System; using Vogen; namespace Whatever; [ValueObject<string>] public partial struct City : IParsable<City> { public static City Parse(string s, IFormatProvider provider) => From(s); public static bool TryParse(string s, IFormatProvider provider, out City result) => throw new NotImplementedException(); } , but found {(7,30): error CS0246: The type or namespace name 'IParsable<>' could not be found (are you missing a using directive or an assembly reference?)}.