public void GetElementsTest() { var another = new Map2D <int, int, int>(); another.Fill( Enumerable.Range(1, 10), Enumerable.Range(1, 10), (i, j) => i * j); if (!this.pitagoricTable.GetElements().ToString().Equals(another.GetElements().ToString())) { Assert.Fail("Wrong implementation"); } }
public bool Equals(Map2D <TKey1, TKey2, TValue> other) { return(Equals(this.data, other.data)); }
/// <inheritdoc cref="IEquatable{T}.Equals(T)" /> public bool Equals(Map2D <TKey1, TKey2, TValue> other) { // TODO: improve return(Equals(this.data, other.data)); }
protected bool Equals(Map2D<TKey1, TKey2, TValue> other) { return Equals(map, other.map); }