Skip to content

Commit

Permalink
Update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveDunn committed Dec 3, 2024
1 parent 23cf9a5 commit a08d800
Show file tree
Hide file tree
Showing 6 changed files with 866 additions and 9 deletions.

This file was deleted.

This file was deleted.

Large diffs are not rendered by default.

11 changes: 9 additions & 2 deletions tests/SnapshotTests/StaticAbstracts/StaticAbstractTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ public async Task Omits_equality_operators_to_primitives_if_specified_in_global_
[assembly: VogenDefaults(
primitiveEqualityGeneration: PrimitiveEqualityGeneration.Omit,
conversions: Conversions.None,
toPrimitiveCasting: CastOperator.Implicit,
fromPrimitiveCasting: CastOperator.Implicit,
staticAbstractsGeneration: StaticAbstractsGeneration.FactoryMethods | StaticAbstractsGeneration.EqualsOperators | StaticAbstractsGeneration.ImplicitCastFromPrimitive | StaticAbstractsGeneration.ImplicitCastToPrimitive)]
[ValueObject<Guid>]
Expand All @@ -119,8 +121,13 @@ public async Task Emits_equality_operators_to_primitives_if_specified_in_global_
[assembly: VogenDefaults(
primitiveEqualityGeneration: PrimitiveEqualityGeneration.GenerateOperatorsAndMethods,
conversions: Conversions.None,
staticAbstractsGeneration: StaticAbstractsGeneration.FactoryMethods | StaticAbstractsGeneration.EqualsOperators | StaticAbstractsGeneration.ImplicitCastFromPrimitive | StaticAbstractsGeneration.ImplicitCastToPrimitive)]
conversions: Conversions.None,
toPrimitiveCasting: CastOperator.Implicit,
fromPrimitiveCasting: CastOperator.Implicit,
staticAbstractsGeneration: StaticAbstractsGeneration.FactoryMethods |
StaticAbstractsGeneration.EqualsOperators |
StaticAbstractsGeneration.ImplicitCastFromPrimitive |
StaticAbstractsGeneration.ImplicitCastToPrimitive)]
[ValueObject<Guid>]
public partial class MyVo { }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,12 @@ private readonly global::System.Diagnostics.StackTrace _stackTrace = null!;
public static global::System.Boolean operator ==(System.Guid left, MyVo right) => right.Value.Equals(left);
public static global::System.Boolean operator !=(System.Guid left, MyVo right) => !(left == right);
public static global::System.Boolean operator !=(MyVo left, System.Guid right) => !(left == right);
public static explicit operator MyVo(System.Guid value) => From(value);
public static explicit operator System.Guid(MyVo value) => value.Value;
public static implicit operator System.Guid(MyVo vo) => vo._value;
public static implicit operator MyVo(System.Guid value)
{
return new MyVo(value);
}

public int CompareTo(MyVo other)
{
if (other is null)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,12 @@ private readonly global::System.Diagnostics.StackTrace _stackTrace = null!;

public static global::System.Boolean operator ==(MyVo left, MyVo right) => Equals(left, right);
public static global::System.Boolean operator !=(MyVo left, MyVo right) => !Equals(left, right);
public static explicit operator MyVo(System.Guid value) => From(value);
public static explicit operator System.Guid(MyVo value) => value.Value;
public static implicit operator System.Guid(MyVo vo) => vo._value;
public static implicit operator MyVo(System.Guid value)
{
return new MyVo(value);
}

public int CompareTo(MyVo other)
{
if (other is null)
Expand Down

0 comments on commit a08d800

Please sign in to comment.