Update source and reinstate tests ready for V1 #215
build.yaml
on: pull_request
ubuntu-latest
1m 4s
windows-latest
3m 33s
run-snapshots
3m 38s
macOS-latest
1m 11s
Annotations
13 errors
ubuntu-latest
Process completed with exit code 1.
|
macOS-latest
Process completed with exit code 1.
|
windows-latest
Process completed with exit code 1.
|
SnapshotTests.GenericAttributeTests.Member_names_can_have_reserved_keywords
VerifyException : Directory: D:\a\Intellenum\Intellenum\tests\SnapshotTests\snapshots\snap-v8.0
New:
- Received: GenericAttributeTests.Member_names_can_have_reserved_keywords.received.txt
Verified: GenericAttributeTests.Member_names_can_have_reserved_keywords.verified.txt
FileContent:
New:
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>
{
#if DEBUG
private readonly global::System.Diagnostics.StackTrace _stackTrace = null;
#endif
private readonly global::System.Boolean _isInitialized;
private readonly System.Int32 _value;
/// <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]
private 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 string Name { get; private set; }
public void Deconstruct(out string Name, out System.Int32 Value)
{
Name = this.Name;
Value = this.Value;
}
/// <summary>
/// Builds a member from an
|
SnapshotTests.TryParseHoisting.Tests.Test
VerifyException : Directory: D:\a\Intellenum\Intellenum\tests\SnapshotTests\TryParseHoisting\snapshots\snap-v8.0
New:
- Received: Tests.Test.received.txt
Verified: Tests.Test.verified.txt
FileContent:
New:
Received: Tests.Test.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(PlanetEnumSystemTextJsonConverter))]
[global::System.ComponentModel.TypeConverter(typeof(PlanetEnumTypeConverter))]
[global::System.Diagnostics.DebuggerTypeProxyAttribute(typeof(PlanetEnumDebugView))]
[global::System.Diagnostics.DebuggerDisplayAttribute("Underlying type: Whatever.Planet, Value = { _value }")]
public partial class PlanetEnum :
global::System.IEquatable<PlanetEnum>,
global::System.IComparable,
global::System.IComparable<PlanetEnum>
{
private static readonly System.Lazy<System.Collections.Generic.Dictionary<string, PlanetEnum>> _namesToEnums = new( () =>
new()
{
{ "Jupiter", Jupiter },
{ "Mars", Mars },
{ "Venus", Venus },
});
private static readonly System.Lazy<System.Collections.Generic.Dictionary<Whatever.Planet, PlanetEnum>> _valuesToEnums = new( () =>
new()
{
{ Jupiter.Value, Jupiter },
{ Mars.Value, Mars },
{ Venus.Value, Venus },
});
#if DEBUG
private readonly global::System.Diagnostics.StackTrace _stackTrace = null;
#endif
private readonly global::System.Boolean _isInitialized;
private readonly Whatever.Planet _value;
static PlanetEnum()
{
Jupiter.Name = "Jupiter";
Mars.Name = "Mars";
Venus.Name = "Venus";
}
/// <summary>
/// Gets the underlying <see cref="Whatever.Planet" /> value if set, otherwise default
/// </summary>
public Whatever.Planet Value => _value;
[global::System.Diagnostics.DebuggerStepThroughAttribute]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public PlanetEnum()
{
#if DEBUG
_stackTrace = new global::System.Diagnostics.StackTrace();
#endif
_isInitialized = false;
_value = default;
Name = "[UNDEFINED]";
}
[global::System.Diagnostics.DebuggerStepThroughAttribute]
private PlanetEnum(Whatever.Planet value)
{
_value = value;
Name = "[INFERRED-TO-BE-REPLACED!]";
_isInitialized = true;
}
[global::System.Diagnostics
|
SnapshotTests.GenerationPermutations.GenerationPermutationTests.GenerationTest(type: "public partial class"
VerifyException : Directory: D:\a\Intellenum\Intellenum\tests\SnapshotTests\GenerationPermutations\snapshots\snap-v8.0
New:
- Received: BY9lm6RwPZ.received.txt
Verified: BY9lm6RwPZ.verified.txt
FileContent:
New:
Received: BY9lm6RwPZ.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.Diagnostics.DebuggerTypeProxyAttribute(typeof(public_partial_classConversions_LinqToDbValueConverterboolDebugView))]
[global::System.Diagnostics.DebuggerDisplayAttribute("Underlying type: System.Boolean, Value = { _value }")]
public partial class public_partial_classConversions_LinqToDbValueConverterbool :
global::System.IEquatable<public_partial_classConversions_LinqToDbValueConverterbool>,
global::System.IComparable,
global::System.IComparable<public_partial_classConversions_LinqToDbValueConverterbool>
{
private static readonly System.Lazy<System.Collections.Generic.Dictionary<string, public_partial_classConversions_LinqToDbValueConverterbool>> _namesToEnums = new( () =>
new()
{
{ "One", One },
});
private static readonly System.Lazy<System.Collections.Generic.Dictionary<System.Boolean, public_partial_classConversions_LinqToDbValueConverterbool>> _valuesToEnums = new( () =>
new()
{
{ One.Value, One },
});
#if DEBUG
private readonly global::System.Diagnostics.StackTrace _stackTrace = null;
#endif
private readonly global::System.Boolean _isInitialized;
private readonly System.Boolean _value;
/// <summary>
/// Gets the underlying <see cref="System.Boolean" /> value if set, otherwise default
/// </summary>
public System.Boolean Value => _value;
[global::System.Diagnostics.DebuggerStepThroughAttribute]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public public_partial_classConversions_LinqToDbValueConverterbool()
{
#if DEBUG
_stackTrace = new global::System.Diagnostics.StackTrace();
#endif
_isInitialized = false;
_value = default;
Name = "[UNDEFINED]";
}
[global::System.Diagnostics.DebuggerStepThroughAttribute]
private public_partial_classConversions_LinqToDbValueConverterbool(System.Boolean value)
{
_value = value;
Name = "[INFERRED-TO-BE-REPLACED!]";
_isInitialized = true;
}
[global::System.Diagnostics.Debugge
|
SnapshotTests.Escaping.GenerationOfEscapedTypesTests.GenerationOfEscapedTypes(type: "public partial class"
VerifyException : Directory: D:\a\Intellenum\Intellenum\tests\SnapshotTests\Escaping\snapshots\snap-v8.0
New:
- Received: escapedTestspublic_partial_classConversions_DapperTypeHandlerSystem_Guid.received.txt
Verified: escapedTestspublic_partial_classConversions_DapperTypeHandlerSystem_Guid.verified.txt
FileContent:
New:
Received: escapedTestspublic_partial_classConversions_DapperTypeHandlerSystem_Guid.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 @Class
{
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Intellenum", "1.0.0.0")]
[global::System.Diagnostics.DebuggerTypeProxyAttribute(typeof(escapedTestspublic_partial_classConversions_DapperTypeHandlerSystem_GuidDebugView))]
[global::System.Diagnostics.DebuggerDisplayAttribute("Underlying type: System.Guid, Value = { _value }")]
public partial class escapedTestspublic_partial_classConversions_DapperTypeHandlerSystem_Guid :
global::System.IEquatable<escapedTestspublic_partial_classConversions_DapperTypeHandlerSystem_Guid>,
global::System.IComparable,
global::System.IComparable<escapedTestspublic_partial_classConversions_DapperTypeHandlerSystem_Guid>
{
private static readonly System.Lazy<System.Collections.Generic.Dictionary<string, escapedTestspublic_partial_classConversions_DapperTypeHandlerSystem_Guid>> _namesToEnums = new( () =>
new()
{
{ "One", One },
});
private static readonly System.Lazy<System.Collections.Generic.Dictionary<System.Guid, escapedTestspublic_partial_classConversions_DapperTypeHandlerSystem_Guid>> _valuesToEnums = new( () =>
new()
{
{ One.Value, One },
});
#if DEBUG
private readonly global::System.Diagnostics.StackTrace _stackTrace = null;
#endif
private readonly global::System.Boolean _isInitialized;
private readonly System.Guid _value;
/// <summary>
/// Gets the underlying <see cref="System.Guid" /> value if set, otherwise default
/// </summary>
public System.Guid Value => _value;
[global::System.Diagnostics.DebuggerStepThroughAttribute]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public escapedTestspublic_partial_classConversions_DapperTypeHandlerSystem_Guid()
{
#if DEBUG
_stackTrace = new global::System.Diagnostics.StackTrace();
#endif
_isInitialized = false;
_value = default;
Name = "[UNDEFINED]";
}
[global::System.Diagnostics.DebuggerStepThroughAttribute]
private escapedTests
|
SnapshotTests.Explicit_members_tests.Explicit_Members_using_a_mixture_of_mechanisms
VerifyException : Directory: D:\a\Intellenum\Intellenum\tests\SnapshotTests\snapshots\snap-v8.0
New:
- Received: Explicit_members_tests.Explicit_Members_using_a_mixture_of_mechanisms.received.txt
Verified: Explicit_members_tests.Explicit_Members_using_a_mixture_of_mechanisms.verified.txt
FileContent:
New:
Received: Explicit_members_tests.Explicit_Members_using_a_mixture_of_mechanisms.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>
{
#if DEBUG
private readonly global::System.Diagnostics.StackTrace _stackTrace = null;
#endif
private readonly global::System.Boolean _isInitialized;
private readonly System.Int32 _value;
/// <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]
private 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 string Name { get; private set; }
public void Deconstruct(out string Name, out System.Int32 Value)
{
Name = this.Name;
Value = this.Value;
}
/// <summary>
///
|
SnapshotTests.GeneralStuff.GeneralTests.Produces_instances
VerifyException : Directory: D:\a\Intellenum\Intellenum\tests\SnapshotTests\GeneralStuff\snapshots\snap-v8.0
New:
- Received: GeneralTests.Produces_instances.received.txt
Verified: GeneralTests.Produces_instances.verified.txt
FileContent:
New:
Received: GeneralTests.Produces_instances.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>
{
#if DEBUG
private readonly global::System.Diagnostics.StackTrace _stackTrace = null;
#endif
private readonly global::System.Boolean _isInitialized;
private readonly System.Int32 _value;
/// <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]
private 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 string Name { get; private set; }
public void Deconstruct(out string Name, out System.Int32 Value)
{
Name = this.Name;
Value = this.Value;
}
/// <summary>
/// Builds a member from an enum value.
/// </summary>
/// <param name="value">The value
|
SnapshotTests.Members.MemberGenerationTests.GenerationTest_FR(type: "internal partial class"
VerifyException : Directory: D:\a\Intellenum\Intellenum\tests\SnapshotTests\Members\snapshots\snap-v8.0-fr
NotEqual:
- Received: oF1fkDqOQF.received.txt
Verified: oF1fkDqOQF.verified.txt
FileContent:
NotEqual:
Received: oF1fkDqOQF.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_classstringSystemTextJsonConverter))]
[global::System.ComponentModel.TypeConverter(typeof(internal_partial_classstringTypeConverter))]
[global::System.Diagnostics.DebuggerTypeProxyAttribute(typeof(internal_partial_classstringDebugView))]
[global::System.Diagnostics.DebuggerDisplayAttribute("Underlying type: System.String, Value = { _value }")]
internal partial class internal_partial_classstring :
global::System.IEquatable<internal_partial_classstring>,
global::System.IComparable,
global::System.IComparable<internal_partial_classstring>
{
#if DEBUG
private readonly global::System.Diagnostics.StackTrace _stackTrace = null;
#endif
private readonly global::System.Boolean _isInitialized;
private readonly System.String _value;
/// <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 internal_partial_classstring()
{
#if DEBUG
_stackTrace = new global::System.Diagnostics.StackTrace();
#endif
_isInitialized = false;
_value = default;
Name = "[UNDEFINED]";
}
[global::System.Diagnostics.DebuggerStepThroughAttribute]
private internal_partial_classstring(System.String value)
{
_value = value;
Name = "[INFERRED-TO-BE-REPLACED!]";
_isInitialized = true;
}
[global::System.Diagnostics.DebuggerStepThroughAttribute]
private internal_partial_classstring(string enumName, System.String value)
{
_value = value;
Name = enumName;
_isInitialized = true;
}
public string Name { get; private set; }
public void Deconstruct(out string Name, out System.String Value)
{
Name = this.Name;
Value = this.Value;
}
/// <summary>
/// Bu
|
SnapshotTests.Config.GlobalConfigTests.Type_override
VerifyException : Directory: D:\a\Intellenum\Intellenum\tests\SnapshotTests\Config\snapshots\snap-v8.0
New:
- Received: GlobalConfigTests.Type_override.received.txt
Verified: GlobalConfigTests.Type_override.verified.txt
FileContent:
New:
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;
/// <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]
private CustomerType(System.Single value)
{
_value = value;
Name = "[INFERRED-TO-BE-REPLACED!]";
_isInitialized = true;
}
[global::System.Diagnostics.DebuggerStepThroughAttribute]
private CustomerType(string enumName, System.Single value)
|
SnapshotTests.GeneralTests.custom_type_literal_new_infer_field_name
VerifyException : Directory: D:\a\Intellenum\Intellenum\tests\SnapshotTests\snapshots\snap-v8.0
New:
- Received: GeneralTests.custom_type_literal_new_infer_field_name.received.txt
Verified: GeneralTests.custom_type_literal_new_infer_field_name.verified.txt
FileContent:
New:
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 readonly global::System.Boolean _isInitialized;
private readonly Whatever.Foo _value;
static FooEnum()
{
Fred.Name = "Fred";
Wilma.Name = "Wilma";
}
/// <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]
private FooEnum(Whatever.Foo value)
{
_value = value;
Name = "[INFERRED-TO-BE-REPLACED!]";
_isInitialized = true;
}
[global::System.Diagnostics.DebuggerStepThro
|
SnapshotTests.Config.LocalConfigTests.Conversion_override
VerifyException : Directory: D:\a\Intellenum\Intellenum\tests\SnapshotTests\Config\snapshots\snap-v8.0
New:
- Received: LocalConfigTests.Conversion_override.received.txt
Verified: LocalConfigTests.Conversion_override.verified.txt
FileContent:
New:
Received: LocalConfigTests.Conversion_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.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>
{
#if DEBUG
private readonly global::System.Diagnostics.StackTrace _stackTrace = null;
#endif
private readonly global::System.Boolean _isInitialized;
private readonly System.Int32 _value;
/// <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]
private 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 string Name { get; private set; }
public void Deconstruct(out string Name, out System.Int32 Value)
{
Name = this.Name;
Value = this.Value;
}
/// <summary>
/// Builds a member from an enum value.
/// </summary>
/// <param name="value">The value.</param>
/// <returns>The matching enum, or an exception.</returns>
public static CustomerType FromValue(System.Int32 value)
{
bool
|