Fix benchmarks #254
build.yaml
on: push
ubuntu-latest
1m 58s
windows-latest
2m 27s
run-snapshots
2m 26s
macOS-latest
1m 49s
Annotations
13 errors
run-snapshots
The run was canceled by @SteveDunn.
|
SnapshotTests.BugFixTests.BugFix142.BugFix142.With_an_inferred_name_and_value_field_for_a_string
VerifyException : Directory: D:\a\Intellenum\Intellenum\tests\SnapshotTests\BugFixTests\snapshots\snap-v8.0
NotEqual:
- Received: BugFix142.With_an_inferred_name_and_value_field_for_a_string.received.txt
Verified: BugFix142.With_an_inferred_name_and_value_field_for_a_string.verified.txt
FileContent:
NotEqual:
Received: BugFix142.With_an_inferred_name_and_value_field_for_a_string.received.txt
[
// ------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a source generator named Intellenum (https://github.com/SteveDunn/Intellenum)
//
// 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
#pragma warning disable CS1573
// Suppress warnings about CS1591: Missing XML comment for publicly visible type or member 'Type_or_Member'
#pragma warning disable CS1591
using Intellenum;
using System;
namespace Whatever
{
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Intellenum", "1.0.0.0")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(OneMemberAttributeAndOneImplicitFieldSystemTextJsonConverter))]
[global::System.ComponentModel.TypeConverter(typeof(OneMemberAttributeAndOneImplicitFieldTypeConverter))]
[global::System.Diagnostics.DebuggerTypeProxyAttribute(typeof(OneMemberAttributeAndOneImplicitFieldDebugView))]
[global::System.Diagnostics.DebuggerDisplayAttribute("Underlying type: System.String, Value = { _value }")]
public partial class OneMemberAttributeAndOneImplicitField : global::System.IEquatable<OneMemberAttributeAndOneImplicitField>, global::System.IComparable, global::System.IComparable<OneMemberAttributeAndOneImplicitField>
{
// const fields...
public const System.String TwoValue = "Two";
#if DEBUG
private readonly global::System.Diagnostics.StackTrace _stackTrace = null;
#endif
private global::System.Boolean _isInitialized;
private System.String _value;
private global::System.String _name;
private static class __Inner
{
public static int __ComeAlive() => 42;
static __Inner()
{
Two._name = "Two";
Two._value = "Two";
Two._isInitialized = true;
}
}
private static readonly int __discard = __Inner.__ComeAlive();
/// <summary>
/// Gets the underlying <see cref = "System.String"/> value if set, otherwise default
/// </summary>
public System.String Value => _value;
[global::System.Diagnostics.DebuggerStepThroughAttribute]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public OneMemberAttributeAndOneImplicitField()
{
#if DEBUG
_stackTrace = new global::System.Diagnostics.StackTrace();
#endif
_isInitialized = false;
_value = default;
_name = "[UNDEFINED]";
}
[global::System.Diagnostics.DebuggerStepThroughAttribute]
public OneMemberAttributeAndOneImplicitField(System.String value)
{
_value = valu
|
SnapshotTests.GenericAttributeTests.Member_names_can_have_reserved_keywords
VerifyException : Directory: D:\a\Intellenum\Intellenum\tests\SnapshotTests\snapshots\snap-v8.0
NotEqual:
- Received: GenericAttributeTests.Member_names_can_have_reserved_keywords.received.txt
Verified: GenericAttributeTests.Member_names_can_have_reserved_keywords.verified.txt
FileContent:
NotEqual:
Received: GenericAttributeTests.Member_names_can_have_reserved_keywords.received.txt
[
// ------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a source generator named Intellenum (https://github.com/SteveDunn/Intellenum)
//
// 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
#pragma warning disable CS1573
// Suppress warnings about CS1591: Missing XML comment for publicly visible type or member 'Type_or_Member'
#pragma warning disable CS1591
using Intellenum;
using System;
namespace Whatever
{
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Intellenum", "1.0.0.0")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(CustomerTypeSystemTextJsonConverter))]
[global::System.ComponentModel.TypeConverter(typeof(CustomerTypeTypeConverter))]
[global::System.Diagnostics.DebuggerTypeProxyAttribute(typeof(CustomerTypeDebugView))]
[global::System.Diagnostics.DebuggerDisplayAttribute("Underlying type: System.Int32, Value = { _value }")]
public partial class CustomerType : global::System.IEquatable<CustomerType>, global::System.IComparable, global::System.IComparable<CustomerType>
{
// const fields...
public const System.Int32 @ClassValue = 42;
public const System.Int32 @eventValue = 69;
#if DEBUG
private readonly global::System.Diagnostics.StackTrace _stackTrace = null;
#endif
private readonly global::System.Boolean _isInitialized;
private readonly System.Int32 _value;
private readonly global::System.String _name;
/// <summary>
/// Gets the underlying <see cref = "System.Int32"/> value if set, otherwise default
/// </summary>
public System.Int32 Value => _value;
[global::System.Diagnostics.DebuggerStepThroughAttribute]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public CustomerType()
{
#if DEBUG
_stackTrace = new global::System.Diagnostics.StackTrace();
#endif
_isInitialized = false;
_value = default;
_name = "[UNDEFINED]";
}
[global::System.Diagnostics.DebuggerStepThroughAttribute]
public CustomerType(System.Int32 value)
{
_value = value;
_name = "[INFERRED-TO-BE-REPLACED!]";
_isInitialized = true;
}
[global::System.Diagnostics.DebuggerStepThroughAttribute]
private CustomerType(string enumName, System.Int32 value)
{
_value = value;
_name = enumName;
_isInitialized = true;
}
public global::System.String Name => _name;
public void Deconstruct(out string Name, out System.Int32 Value)
{
|
SnapshotTests.GeneralTests.custom_type_literal_new_infer_field_name
VerifyException : Directory: D:\a\Intellenum\Intellenum\tests\SnapshotTests\snapshots\snap-v8.0
NotEqual:
- Received: GeneralTests.custom_type_literal_new_infer_field_name.received.txt
Verified: GeneralTests.custom_type_literal_new_infer_field_name.verified.txt
FileContent:
NotEqual:
Received: GeneralTests.custom_type_literal_new_infer_field_name.received.txt
[
// ------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a source generator named Intellenum (https://github.com/SteveDunn/Intellenum)
//
// 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
#pragma warning disable CS1573
// Suppress warnings about CS1591: Missing XML comment for publicly visible type or member 'Type_or_Member'
#pragma warning disable CS1591
using Intellenum;
using System;
using Whatever;
namespace Whatever
{
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Intellenum", "1.0.0.0")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(FooEnumSystemTextJsonConverter))]
[global::System.ComponentModel.TypeConverter(typeof(FooEnumTypeConverter))]
[global::System.Diagnostics.DebuggerTypeProxyAttribute(typeof(FooEnumDebugView))]
[global::System.Diagnostics.DebuggerDisplayAttribute("Underlying type: Whatever.Foo, Value = { _value }")]
public partial class FooEnum : global::System.IEquatable<FooEnum>, global::System.IComparable, global::System.IComparable<FooEnum>
{
private static readonly System.Lazy<System.Collections.Generic.Dictionary<string, FooEnum>> _namesToEnums = new(() => new() { { "Fred", Fred }, { "Wilma", Wilma }, });
private static readonly System.Lazy<System.Collections.Generic.Dictionary<Whatever.Foo, FooEnum>> _valuesToEnums = new(() => new() { { Fred.Value, Fred }, { Wilma.Value, Wilma }, });
#if DEBUG
private readonly global::System.Diagnostics.StackTrace _stackTrace = null;
#endif
private global::System.Boolean _isInitialized;
private Whatever.Foo _value;
private global::System.String _name;
private static class __Inner
{
public static int __ComeAlive() => 42;
static __Inner()
{
Fred._name = "Fred";
Wilma._name = "Wilma";
}
}
private static readonly int __discard = __Inner.__ComeAlive();
/// <summary>
/// Gets the underlying <see cref = "Whatever.Foo"/> value if set, otherwise default
/// </summary>
public Whatever.Foo Value => _value;
[global::System.Diagnostics.DebuggerStepThroughAttribute]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public FooEnum()
{
#if DEBUG
_stackTrace = new global::System.Diagnostics.StackTrace();
#endif
_isInitialized = false;
_value = default;
_name = "[UNDEFINED]";
}
[global::System.Diagnostics.DebuggerStepThroughAttribute]
public FooEnum(Whatever.Foo value)
{
_value = value;
|
windows-latest
The run was canceled by @SteveDunn.
|
SnapshotTests.GeneralStuff.GeneralTests+When_using_static_fields_that_are_newed_up.The_name_and_value_of_the_member_is_inferred
VerifyException : Directory: D:\a\Intellenum\Intellenum\tests\SnapshotTests\GeneralStuff\snapshots\snap-v8.0
NotEqual:
- Received: GeneralTests.When_using_static_fields_that_are_newed_up.The_name_and_value_of_the_member_is_inferred.received.txt
Verified: GeneralTests.When_using_static_fields_that_are_newed_up.The_name_and_value_of_the_member_is_inferred.verified.txt
FileContent:
NotEqual:
Received: GeneralTests.When_using_static_fields_that_are_newed_up.The_name_and_value_of_the_member_is_inferred.received.txt
[
// ------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a source generator named Intellenum (https://github.com/SteveDunn/Intellenum)
//
// 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
#pragma warning disable CS1573
// Suppress warnings about CS1591: Missing XML comment for publicly visible type or member 'Type_or_Member'
#pragma warning disable CS1591
using Intellenum;
using System;
namespace Whatever
{
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Intellenum", "1.0.0.0")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(ESystemTextJsonConverter))]
[global::System.ComponentModel.TypeConverter(typeof(ETypeConverter))]
[global::System.Diagnostics.DebuggerTypeProxyAttribute(typeof(EDebugView))]
[global::System.Diagnostics.DebuggerDisplayAttribute("Underlying type: System.String, Value = { _value }")]
public partial class E : global::System.IEquatable<E>, global::System.IComparable, global::System.IComparable<E>
{
// const fields...
public const System.String TwoValue = "Two";
#if DEBUG
private readonly global::System.Diagnostics.StackTrace _stackTrace = null;
#endif
private global::System.Boolean _isInitialized;
private System.String _value;
private global::System.String _name;
private static class __Inner
{
public static int __ComeAlive() => 42;
static __Inner()
{
Two._name = "Two";
Two._value = "Two";
Two._isInitialized = true;
}
}
private static readonly int __discard = __Inner.__ComeAlive();
/// <summary>
/// Gets the underlying <see cref = "System.String"/> value if set, otherwise default
/// </summary>
public System.String Value => _value;
[global::System.Diagnostics.DebuggerStepThroughAttribute]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public E()
{
#if DEBUG
_stackTrace = new global::System.Diagnostics.StackTrace();
#endif
_isInitialized = false;
_value = default;
_name = "[UNDEFINED]";
}
[global::System.Diagnostics.DebuggerStepThroughAttribute]
public E(System.String value)
{
_value = value;
_name = "[INFERRED-TO-BE-REPLACED!]";
_isInitialized = true;
}
[global::System.Diagnostics.DebuggerStepThroughAttribute]
|
windows-latest
The operation was canceled.
|
SnapshotTests.GeneralStuff.GeneralTests.One_parameter_string_instances_on_strings
VerifyException : Directory: D:\a\Intellenum\Intellenum\tests\SnapshotTests\GeneralStuff\snapshots\snap-v8.0
NotEqual:
- Received: GeneralTests.One_parameter_string_instances_on_strings.received.txt
Verified: GeneralTests.One_parameter_string_instances_on_strings.verified.txt
FileContent:
NotEqual:
Received: GeneralTests.One_parameter_string_instances_on_strings.received.txt
[
// ------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a source generator named Intellenum (https://github.com/SteveDunn/Intellenum)
//
// 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
#pragma warning disable CS1573
// Suppress warnings about CS1591: Missing XML comment for publicly visible type or member 'Type_or_Member'
#pragma warning disable CS1591
using Intellenum;
using System;
namespace Whatever
{
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Intellenum", "1.0.0.0")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(CustomerTypeSystemTextJsonConverter))]
[global::System.ComponentModel.TypeConverter(typeof(CustomerTypeTypeConverter))]
[global::System.Diagnostics.DebuggerTypeProxyAttribute(typeof(CustomerTypeDebugView))]
[global::System.Diagnostics.DebuggerDisplayAttribute("Underlying type: System.String, Value = { _value }")]
public partial class CustomerType : global::System.IEquatable<CustomerType>, global::System.IComparable, global::System.IComparable<CustomerType>
{
// const fields...
public const System.String NormalValue = "Normal";
public const System.String GoldValue = "Gold";
public const System.String DiamondValue = "Diamond";
#if DEBUG
private readonly global::System.Diagnostics.StackTrace _stackTrace = null;
#endif
private readonly global::System.Boolean _isInitialized;
private readonly System.String _value;
private readonly global::System.String _name;
/// <summary>
/// Gets the underlying <see cref = "System.String"/> value if set, otherwise default
/// </summary>
public System.String Value => _value;
[global::System.Diagnostics.DebuggerStepThroughAttribute]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public CustomerType()
{
#if DEBUG
_stackTrace = new global::System.Diagnostics.StackTrace();
#endif
_isInitialized = false;
_value = default;
_name = "[UNDEFINED]";
}
[global::System.Diagnostics.DebuggerStepThroughAttribute]
public CustomerType(System.String value)
{
_value = value;
_name = "[INFERRED-TO-BE-REPLACED!]";
_isInitialized = true;
}
[global::System.Diagnostics.DebuggerStepThroughAttribute]
private CustomerType(string enumName, System.String value)
{
_value = value;
_name = enumName;
_isInitialized = true;
}
public global::System.String Name => _name;
public void
|
SnapshotTests.ToString.ToStringGenerationTests.Test(className: "partial_class_None"
VerifyException : Directory: D:\a\Intellenum\Intellenum\tests\SnapshotTests\ToString\snapshots\snap-v8.0
NotEqual:
- Received: partial_class_None.received.txt
Verified: partial_class_None.verified.txt
FileContent:
NotEqual:
Received: partial_class_None.received.txt
[
// ------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a source generator named Intellenum (https://github.com/SteveDunn/Intellenum)
//
// 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
#pragma warning disable CS1573
// Suppress warnings about CS1591: Missing XML comment for publicly visible type or member 'Type_or_Member'
#pragma warning disable CS1591
using Intellenum;
using System;
namespace Whatever
{
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Intellenum", "1.0.0.0")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(partial_class_NoneSystemTextJsonConverter))]
[global::System.ComponentModel.TypeConverter(typeof(partial_class_NoneTypeConverter))]
[global::System.Diagnostics.DebuggerTypeProxyAttribute(typeof(partial_class_NoneDebugView))]
[global::System.Diagnostics.DebuggerDisplayAttribute("Underlying type: System.Int32, Value = { _value }")]
public partial class partial_class_None : global::System.IEquatable<partial_class_None>, global::System.IComparable, global::System.IComparable<partial_class_None>
{
// const fields...
public const System.Int32 OneValue = 1;
#if DEBUG
private readonly global::System.Diagnostics.StackTrace _stackTrace = null;
#endif
private readonly global::System.Boolean _isInitialized;
private readonly System.Int32 _value;
private readonly global::System.String _name;
/// <summary>
/// Gets the underlying <see cref = "System.Int32"/> value if set, otherwise default
/// </summary>
public System.Int32 Value => _value;
[global::System.Diagnostics.DebuggerStepThroughAttribute]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public partial_class_None()
{
#if DEBUG
_stackTrace = new global::System.Diagnostics.StackTrace();
#endif
_isInitialized = false;
_value = default;
_name = "[UNDEFINED]";
}
[global::System.Diagnostics.DebuggerStepThroughAttribute]
public partial_class_None(System.Int32 value)
{
_value = value;
_name = "[INFERRED-TO-BE-REPLACED!]";
_isInitialized = true;
}
[global::System.Diagnostics.DebuggerStepThroughAttribute]
private partial_class_None(string enumName, System.Int32 value)
{
_value = value;
_name = enumName;
_isInitialized = true;
}
public global::System.String Name => _name;
public void Deconstruct(out string Name, out System.Int32 Value)
{
Name = this._name;
Value = this._value;
}
/// <summary>
/// Builds a member fro
|
SnapshotTests.Config.GlobalConfigTests.Type_override
VerifyException : Directory: D:\a\Intellenum\Intellenum\tests\SnapshotTests\Config\snapshots\snap-v8.0
NotEqual:
- Received: GlobalConfigTests.Type_override.received.txt
Verified: GlobalConfigTests.Type_override.verified.txt
FileContent:
NotEqual:
Received: GlobalConfigTests.Type_override.received.txt
[
// ------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a source generator named Intellenum (https://github.com/SteveDunn/Intellenum)
//
// 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
#pragma warning disable CS1573
// Suppress warnings about CS1591: Missing XML comment for publicly visible type or member 'Type_or_Member'
#pragma warning disable CS1591
using Intellenum;
using System;
namespace Whatever
{
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Intellenum", "1.0.0.0")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(CustomerTypeSystemTextJsonConverter))]
[global::System.ComponentModel.TypeConverter(typeof(CustomerTypeTypeConverter))]
[global::System.Diagnostics.DebuggerTypeProxyAttribute(typeof(CustomerTypeDebugView))]
[global::System.Diagnostics.DebuggerDisplayAttribute("Underlying type: System.Single, Value = { _value }")]
public partial class CustomerType : global::System.IEquatable<CustomerType>, global::System.IComparable, global::System.IComparable<CustomerType>
{
private static readonly System.Lazy<System.Collections.Generic.Dictionary<string, CustomerType>> _namesToEnums = new(() => new() { { "Normal", Normal }, { "Gold", Gold }, });
private static readonly System.Lazy<System.Collections.Generic.Dictionary<System.Single, CustomerType>> _valuesToEnums = new(() => new() { { Normal.Value, Normal }, { Gold.Value, Gold }, });
#if DEBUG
private readonly global::System.Diagnostics.StackTrace _stackTrace = null;
#endif
private readonly global::System.Boolean _isInitialized;
private readonly System.Single _value;
private readonly global::System.String _name;
/// <summary>
/// Gets the underlying <see cref = "System.Single"/> value if set, otherwise default
/// </summary>
public System.Single Value => _value;
[global::System.Diagnostics.DebuggerStepThroughAttribute]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public CustomerType()
{
#if DEBUG
_stackTrace = new global::System.Diagnostics.StackTrace();
#endif
_isInitialized = false;
_value = default;
_name = "[UNDEFINED]";
}
[global::System.Diagnostics.DebuggerStepThroughAttribute]
public CustomerType(System.Single value)
{
_value = value;
_name = "[INFERRED-TO-BE-REPLACED!]";
_isInitialized = true;
}
[global::System.Diagnostics.DebuggerStepThroughAttribute]
private CustomerType(string enumName, System.Single value)
{
_value = value;
_name = enumName;
_i
|
SnapshotTests.Members.UsingMemberMethods.Member_values_can_have_type_suffixes
VerifyException : Directory: D:\a\Intellenum\Intellenum\tests\SnapshotTests\Members\snapshots\snap-v8.0
NotEqual:
- Received: UsingMemberMethods.Member_values_can_have_type_suffixes.received.txt
Verified: UsingMemberMethods.Member_values_can_have_type_suffixes.verified.txt
FileContent:
NotEqual:
Received: UsingMemberMethods.Member_values_can_have_type_suffixes.received.txt
[
// ------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a source generator named Intellenum (https://github.com/SteveDunn/Intellenum)
//
// 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
#pragma warning disable CS1573
// Suppress warnings about CS1591: Missing XML comment for publicly visible type or member 'Type_or_Member'
#pragma warning disable CS1591
using Intellenum;
using System;
namespace Whatever
{
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Intellenum", "1.0.0.0")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(CSharpSymbolSystemTextJsonConverter))]
[global::System.ComponentModel.TypeConverter(typeof(CSharpSymbolTypeConverter))]
[global::System.Diagnostics.DebuggerTypeProxyAttribute(typeof(CSharpSymbolDebugView))]
[global::System.Diagnostics.DebuggerDisplayAttribute("Underlying type: System.Single, Value = { _value }")]
public partial class CSharpSymbol : global::System.IEquatable<CSharpSymbol>, global::System.IComparable, global::System.IComparable<CSharpSymbol>
{
private static readonly System.Lazy<System.Collections.Generic.Dictionary<string, CSharpSymbol>> _namesToEnums = new(() => new() { { "Standard", Standard }, });
private static readonly System.Lazy<System.Collections.Generic.Dictionary<System.Single, CSharpSymbol>> _valuesToEnums = new(() => new() { { Standard.Value, Standard }, });
#if DEBUG
private readonly global::System.Diagnostics.StackTrace _stackTrace = null;
#endif
private readonly global::System.Boolean _isInitialized;
private readonly System.Single _value;
private readonly global::System.String _name;
/// <summary>
/// Gets the underlying <see cref = "System.Single"/> value if set, otherwise default
/// </summary>
public System.Single Value => _value;
[global::System.Diagnostics.DebuggerStepThroughAttribute]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public CSharpSymbol()
{
#if DEBUG
_stackTrace = new global::System.Diagnostics.StackTrace();
#endif
_isInitialized = false;
_value = default;
_name = "[UNDEFINED]";
}
[global::System.Diagnostics.DebuggerStepThroughAttribute]
public CSharpSymbol(System.Single value)
{
_value = value;
_name = "[INFERRED-TO-BE-REPLACED!]";
_isInitialized = true;
}
[global::System.Diagnostics.DebuggerStepThroughAttribute]
private CSharpSymbol(string enumName, System.Single value)
{
_value = value;
|
SnapshotTests.GenerationPermutations.GenerationPermutationTests.GenerationTests_FR(type: "internal partial class"
VerifyException : Directory: D:\a\Intellenum\Intellenum\tests\SnapshotTests\GenerationPermutations\snapshots\snap-v8.0-fr
NotEqual:
- Received: V4MmKA6xMl.received.txt
Verified: V4MmKA6xMl.verified.txt
FileContent:
NotEqual:
Received: V4MmKA6xMl.received.txt
[
// ------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a source generator named Intellenum (https://github.com/SteveDunn/Intellenum)
//
// 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
#pragma warning disable CS1573
// Suppress warnings about CS1591: Missing XML comment for publicly visible type or member 'Type_or_Member'
#pragma warning disable CS1591
using Intellenum;
using System;
namespace Whatever
{
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Intellenum", "1.0.0.0")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterintSystemTextJsonConverter))]
[global::Newtonsoft.Json.JsonConverter(typeof(internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterintNewtonsoftJsonConverter))]
[global::System.Diagnostics.DebuggerTypeProxyAttribute(typeof(internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterintDebugView))]
[global::System.Diagnostics.DebuggerDisplayAttribute("Underlying type: System.Int32, Value = { _value }")]
internal partial class internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint : global::System.IEquatable<internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint>, global::System.IComparable, global::System.IComparable<internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint>
{
// const fields...
public const System.Int32 OneValue = 1;
#if DEBUG
private readonly global::System.Diagnostics.StackTrace _stackTrace = null;
#endif
private readonly global::System.Boolean _isInitialized;
private readonly System.Int32 _value;
private readonly global::System.String _name;
/// <summary>
/// Gets the underlying <see cref = "System.Int32"/> value if set, otherwise default
/// </summary>
public System.Int32 Value => _value;
[global::System.Diagnostics.DebuggerStepThroughAttribute]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public intern
|
SnapshotTests.Members.UsingMembersMethod.Member_names_can_have_reserved_keywords
VerifyException : Directory: D:\a\Intellenum\Intellenum\tests\SnapshotTests\Members\snapshots\snap-v8.0
NotEqual:
- Received: UsingMembersMethod.Member_names_can_have_reserved_keywords.received.txt
Verified: UsingMembersMethod.Member_names_can_have_reserved_keywords.verified.txt
FileContent:
NotEqual:
Received: UsingMembersMethod.Member_names_can_have_reserved_keywords.received.txt
[
// ------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a source generator named Intellenum (https://github.com/SteveDunn/Intellenum)
//
// 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
#pragma warning disable CS1573
// Suppress warnings about CS1591: Missing XML comment for publicly visible type or member 'Type_or_Member'
#pragma warning disable CS1591
using Intellenum;
using System;
namespace Whatever
{
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Intellenum", "1.0.0.0")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(CSharpSymbolSystemTextJsonConverter))]
[global::System.ComponentModel.TypeConverter(typeof(CSharpSymbolTypeConverter))]
[global::System.Diagnostics.DebuggerTypeProxyAttribute(typeof(CSharpSymbolDebugView))]
[global::System.Diagnostics.DebuggerDisplayAttribute("Underlying type: System.Int32, Value = { _value }")]
public partial class CSharpSymbol : global::System.IEquatable<CSharpSymbol>, global::System.IComparable, global::System.IComparable<CSharpSymbol>
{
// const fields...
public const System.Int32 @ClassValue = 0;
public const System.Int32 @eventValue = 1;
#if DEBUG
private readonly global::System.Diagnostics.StackTrace _stackTrace = null;
#endif
private readonly global::System.Boolean _isInitialized;
private readonly System.Int32 _value;
private readonly global::System.String _name;
/// <summary>
/// Gets the underlying <see cref = "System.Int32"/> value if set, otherwise default
/// </summary>
public System.Int32 Value => _value;
[global::System.Diagnostics.DebuggerStepThroughAttribute]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public CSharpSymbol()
{
#if DEBUG
_stackTrace = new global::System.Diagnostics.StackTrace();
#endif
_isInitialized = false;
_value = default;
_name = "[UNDEFINED]";
}
[global::System.Diagnostics.DebuggerStepThroughAttribute]
public CSharpSymbol(System.Int32 value)
{
_value = value;
_name = "[INFERRED-TO-BE-REPLACED!]";
_isInitialized = true;
}
[global::System.Diagnostics.DebuggerStepThroughAttribute]
private CSharpSymbol(string enumName, System.Int32 value)
{
_value = value;
_name = enumName;
_isInitialized = true;
}
public global::System.String Name => _name;
public void Deconstruct(out string Name, out System.Int32 Value)
{
|