public void EqualsLong() { EqualityUnit .Create(new Number(1L)) .WithEqualValues(new Number(1L)) .WithNotEqualValues(new Number(1), new Number(42), Number.Empty) .RunAll(operatorEquals: (x, y) => x == y, operatorNotEquals: (x, y) => x != y); }
public void Equality() { EqualityUnit .Create(new NativeName("test", NativeNameKind.Struct)) .WithEqualValues(new NativeName("test", NativeNameKind.Struct)) .WithNotEqualValues( new NativeName("test", NativeNameKind.Union), new NativeName("other", NativeNameKind.Struct)) .RunAll( operatorEquals: (x, y) => x == y, operatorNotEquals: (x, y) => x != y); }