示例#1
0
        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");
            }
        }
示例#2
0
 public bool Equals(Map2D <TKey1, TKey2, TValue> other)
 {
     return(Equals(this.data, other.data));
 }
示例#3
0
 /// <inheritdoc cref="IEquatable{T}.Equals(T)" />
 public bool Equals(Map2D <TKey1, TKey2, TValue> other)
 {
     // TODO: improve
     return(Equals(this.data, other.data));
 }
示例#4
0
 protected bool Equals(Map2D<TKey1, TKey2, TValue> other)
 {
     return Equals(map, other.map);
 }