Rebase snapshots #229
Annotations
10 errors
VerifyException : Directory: D:\a\Intellenum\Intellenum\tests\SnapshotTests\snapshots\snap-v8.0
New:
- Received: ConstFieldGenerationTests.custom_type_literal_new3.received.txt
Verified: ConstFieldGenerationTests.custom_type_literal_new3.verified.txt
FileContent:
New:
Received: ConstFieldGenerationTests.custom_type_literal_new3.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()
{
{ "Item1", Item1 },
{ "Item2", Item2 },
});
private static readonly System.Lazy<System.Collections.Generic.Dictionary<Whatever.Foo, FooEnum>> _valuesToEnums = new( () =>
new()
{
{ Item1.Value, Item1 },
{ Item2.Value, Item2 },
});
#if DEBUG
private readonly global::System.Diagnostics.StackTrace _stackTrace = null;
#endif
private readonly global::System.Boolean _isInitialized;
private readonly Whatever.Foo _value;
/// <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.DebuggerStepThroughAttribute]
private FooEnum(string enumName, Whatever.Fo
|
VerifyException : Directory: D:\a\Intellenum\Intellenum\tests\SnapshotTests\snapshots\snap-v8.0
New:
- Received: ConstFieldGenerationTests.test_short_id_as_string.received.txt
Verified: ConstFieldGenerationTests.test_short_id_as_string.verified.txt
FileContent:
New:
Received: ConstFieldGenerationTests.test_short_id_as_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 SomethingElse
{
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Intellenum", "1.0.0.0")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(ShortHolderId_stringSystemTextJsonConverter))]
[global::System.ComponentModel.TypeConverter(typeof(ShortHolderId_stringTypeConverter))]
[global::System.Diagnostics.DebuggerTypeProxyAttribute(typeof(ShortHolderId_stringDebugView))]
[global::System.Diagnostics.DebuggerDisplayAttribute("Underlying type: System.Int16, Value = { _value }")]
public partial class ShortHolderId_string :
global::System.IEquatable<ShortHolderId_string>,
global::System.IComparable,
global::System.IComparable<ShortHolderId_string>
{
// const fields...
public const System.Int16 Item1Value = 123;
public const System.Int16 Item2Value = 321;
#if DEBUG
private readonly global::System.Diagnostics.StackTrace _stackTrace = null;
#endif
private readonly global::System.Boolean _isInitialized;
private readonly System.Int16 _value;
/// <summary>
/// Gets the underlying <see cref="System.Int16" /> value if set, otherwise default
/// </summary>
public System.Int16 Value => _value;
[global::System.Diagnostics.DebuggerStepThroughAttribute]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public ShortHolderId_string()
{
#if DEBUG
_stackTrace = new global::System.Diagnostics.StackTrace();
#endif
_isInitialized = false;
_value = default;
Name = "[UNDEFINED]";
}
[global::System.Diagnostics.DebuggerStepThroughAttribute]
private ShortHolderId_string(System.Int16 value)
{
_value = value;
Name = "[INFERRED-TO-BE-REPLACED!]";
_isInitialized = true;
}
[global::System.Diagnostics.DebuggerStepThroughAttribute]
private ShortHolderId_string(string enumName, System.Int16 value)
{
_value = value;
Name = enumName;
_isInitialized = true;
}
public string Name { get; private set; }
public void Deconstruct(out string Name, out System.Int1
|
VerifyException : Directory: D:\a\Intellenum\Intellenum\tests\SnapshotTests\snapshots\snap-v8.0
New:
- Received: ConstFieldGenerationTests.dev_test1.received.txt
Verified: ConstFieldGenerationTests.dev_test1.verified.txt
FileContent:
New:
Received: ConstFieldGenerationTests.dev_test1.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 = "n";
public const System.String GoldValue = "g";
public const System.String DiamondValue = "d";
#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 CustomerType()
{
#if DEBUG
_stackTrace = new global::System.Diagnostics.StackTrace();
#endif
_isInitialized = false;
_value = default;
Name = "[UNDEFINED]";
}
[global::System.Diagnostics.DebuggerStepThroughAttribute]
private 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 string Name { get; private set; }
public void Deconstruct(out string Name, out System.String Value)
{
Name = this.Name;
Va
|
VerifyException : Directory: D:\a\Intellenum\Intellenum\tests\SnapshotTests\snapshots\snap-v8.0
New:
- Received: ConstFieldGenerationTests.custom_type_literal_new_infer_field_name.received.txt
Verified: ConstFieldGenerationTests.custom_type_literal_new_infer_field_name.verified.txt
FileContent:
New:
Received: ConstFieldGenerationTests.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;
}
|
VerifyException : Directory: D:\a\Intellenum\Intellenum\tests\SnapshotTests\snapshots\snap-v8.0
New:
- Received: ConstFieldGenerationTests.float_created_successfully.received.txt
Verified: ConstFieldGenerationTests.float_created_successfully.verified.txt
FileContent:
New:
Received: ConstFieldGenerationTests.float_created_successfully.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.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)
{
_value = value;
Name = enumName;
_isInitialized = true;
}
|
VerifyException : Directory: D:\a\Intellenum\Intellenum\tests\SnapshotTests\snapshots\snap-v8.0
New:
- Received: ConstFieldGenerationTests.custom_type.received.txt
Verified: ConstFieldGenerationTests.custom_type.verified.txt
FileContent:
New:
Received: ConstFieldGenerationTests.custom_type.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()
{
{ "Item1", Item1 },
{ "Item2", Item2 },
});
private static readonly System.Lazy<System.Collections.Generic.Dictionary<Whatever.Foo, FooEnum>> _valuesToEnums = new( () =>
new()
{
{ Item1.Value, Item1 },
{ Item2.Value, Item2 },
});
#if DEBUG
private readonly global::System.Diagnostics.StackTrace _stackTrace = null;
#endif
private readonly global::System.Boolean _isInitialized;
private readonly Whatever.Foo _value;
/// <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.DebuggerStepThroughAttribute]
private FooEnum(string enumName, Whatever.Foo value)
{
_value =
|
VerifyException : Directory: D:\a\Intellenum\Intellenum\tests\SnapshotTests\snapshots\snap-v8.0
New:
- Received: ConstFieldGenerationTests.int_created_successfully.received.txt
Verified: ConstFieldGenerationTests.int_created_successfully.verified.txt
FileContent:
New:
Received: ConstFieldGenerationTests.int_created_successfully.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 NormalValue = 0;
public const System.Int32 GoldValue = 1;
public const System.Int32 DiamondValue = 2;
#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)
{
Nam
|
VerifyException : Directory: D:\a\Intellenum\Intellenum\tests\SnapshotTests\snapshots\snap-v8.0
New:
- Received: ConstFieldGenerationTests.test_bool.received.txt
Verified: ConstFieldGenerationTests.test_bool.verified.txt
FileContent:
New:
Received: ConstFieldGenerationTests.test_bool.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;
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Intellenum", "1.0.0.0")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(BoolVoSystemTextJsonConverter))]
[global::System.ComponentModel.TypeConverter(typeof(BoolVoTypeConverter))]
[global::System.Diagnostics.DebuggerTypeProxyAttribute(typeof(BoolVoDebugView))]
[global::System.Diagnostics.DebuggerDisplayAttribute("Underlying type: System.Boolean, Value = { _value }")]
public partial class BoolVo :
global::System.IEquatable<BoolVo>,
global::System.IComparable,
global::System.IComparable<BoolVo>
{
private static readonly System.Lazy<System.Collections.Generic.Dictionary<string, BoolVo>> _namesToEnums = new( () =>
new()
{
{ "No", No },
{ "Yes", Yes },
});
private static readonly System.Lazy<System.Collections.Generic.Dictionary<System.Boolean, BoolVo>> _valuesToEnums = new( () =>
new()
{
{ No.Value, No },
{ Yes.Value, Yes },
});
#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 BoolVo()
{
#if DEBUG
_stackTrace = new global::System.Diagnostics.StackTrace();
#endif
_isInitialized = false;
_value = default;
Name = "[UNDEFINED]";
}
[global::System.Diagnostics.DebuggerStepThroughAttribute]
private BoolVo(System.Boolean value)
{
_value = value;
Name = "[INFERRED-TO-BE-REPLACED!]";
_isInitialized = true;
}
[global::System.Diagnostics.DebuggerStepThroughAttribute]
private BoolVo(string enumName, System.Boolean value)
{
_value = value;
Name = enumName;
_isInitial
|
VerifyException : Directory: D:\a\Intellenum\Intellenum\tests\SnapshotTests\snapshots\snap-v8.0
New:
- Received: ConstFieldGenerationTests.string_created_successfully.received.txt
Verified: ConstFieldGenerationTests.string_created_successfully.verified.txt
FileContent:
New:
Received: ConstFieldGenerationTests.string_created_successfully.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 = "n";
public const System.String GoldValue = "g";
public const System.String DiamondValue = "d";
#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 CustomerType()
{
#if DEBUG
_stackTrace = new global::System.Diagnostics.StackTrace();
#endif
_isInitialized = false;
_value = default;
Name = "[UNDEFINED]";
}
[global::System.Diagnostics.DebuggerStepThroughAttribute]
private 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 string Name { get; private set; }
public void Deconstruct(out string Name, out System.String Value)
|
VerifyException : Directory: D:\a\Intellenum\Intellenum\tests\SnapshotTests\snapshots\snap-v8.0
New:
- Received: ConstFieldGenerationTests.decimals.received.txt
Verified: ConstFieldGenerationTests.decimals.verified.txt
FileContent:
New:
Received: ConstFieldGenerationTests.decimals.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(MinimumWageInUKSystemTextJsonConverter))]
[global::System.ComponentModel.TypeConverter(typeof(MinimumWageInUKTypeConverter))]
[global::System.Diagnostics.DebuggerTypeProxyAttribute(typeof(MinimumWageInUKDebugView))]
[global::System.Diagnostics.DebuggerDisplayAttribute("Underlying type: System.Decimal, Value = { _value }")]
public partial class MinimumWageInUK :
global::System.IEquatable<MinimumWageInUK>,
global::System.IComparable,
global::System.IComparable<MinimumWageInUK>
{
// const fields...
public const System.Decimal ApprenticeValue = 4.3m;
public const System.Decimal UnderEighteenValue = 4.62m;
public const System.Decimal EighteenToTwentyValue = 6.56m;
public const System.Decimal TwentyOneAndOverValue = 8.36m;
public const System.Decimal TwentyFiveAndOverValue = 8.91m;
#if DEBUG
private readonly global::System.Diagnostics.StackTrace _stackTrace = null;
#endif
private readonly global::System.Boolean _isInitialized;
private readonly System.Decimal _value;
/// <summary>
/// Gets the underlying <see cref="System.Decimal" /> value if set, otherwise default
/// </summary>
public System.Decimal Value => _value;
[global::System.Diagnostics.DebuggerStepThroughAttribute]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public MinimumWageInUK()
{
#if DEBUG
_stackTrace = new global::System.Diagnostics.StackTrace();
#endif
_isInitialized = false;
_value = default;
Name = "[UNDEFINED]";
}
[global::System.Diagnostics.DebuggerStepThroughAttribute]
private MinimumWageInUK(System.Decimal value)
{
_value = value;
Name = "[INFERRED-TO-BE-REPLACED!]";
_isInitialized = true;
}
[global::System.Diagnostics.DebuggerStepThroughAttribute]
private MinimumWageInUK(string enumName, System.Decimal value)
{
_value = value;
Name = enumName;
_isInitialized = true;
}
|
The logs for this run have expired and are no longer available.
Loading