GlobalGameJame/Library/PackageCache/com.unity.test-framework@1.1.9/UnityEngine.TestRunner/Utils/Vector2ComparerWithEqualsOperator.cs

23 lines
650 B
C#
Raw Normal View History

2020-01-31 15:10:04 +00:00
using System.Collections.Generic;
namespace UnityEngine.TestTools.Utils
{
public class Vector2ComparerWithEqualsOperator : IEqualityComparer<Vector2>
{
private static readonly Vector2ComparerWithEqualsOperator m_Instance = new Vector2ComparerWithEqualsOperator();
public static Vector2ComparerWithEqualsOperator Instance { get { return m_Instance; } }
private Vector2ComparerWithEqualsOperator() {}
public bool Equals(Vector2 expected, Vector2 actual)
{
return expected == actual;
}
public int GetHashCode(Vector2 vec2)
{
return 0;
}
}
}