public void Equality_4() { var nls = new NLSMap("{eng: {n: 'namE', d: 'descr'}}"); var nls2 = new NLSMap("{eng: {d: 'descr', n: 'Name' }}"); Aver.IsFalse(nls.Equals(nls2)); Aver.IsFalse(nls2.Equals(nls)); }
public void Equality_1_0() { var nls = new NLSMap(new NLSMap.NDPair[0]); var nls2 = new NLSMap(new NLSMap.NDPair[0]); Aver.IsTrue(nls.Equals(nls2)); Aver.AreEqual(nls.GetHashCode(), nls2.GetHashCode()); }
public void Equality_7() { var nls = new NLSMap("{eng: {n: 'name', d: 'descr'}, rus: {n: 'i', d: 'o'}, chi: {n: '1', d: '2'}}"); var nls2 = new NLSMap("{rus: {n: 'i', d: 'o'}, eng: {d: 'descr', n: 'name' }}"); Aver.IsFalse(nls.Equals(nls2)); Aver.IsFalse(nls2.Equals(nls)); Aver.AreNotEqual(nls.GetHashCode(), nls2.GetHashCode()); }
public void Equality_6() { var nls = new NLSMap("{eng: {n: 'name', d: 'descr'}, rus: {n: 'i', d: 'o'}}"); var nls2 = new NLSMap("{ eng: {d: 'descr', n: 'name' }, rus: {n: 'i', d: 'o'} }"); Aver.IsTrue(nls.Equals(nls2)); Aver.IsTrue(nls2.Equals(nls)); Aver.AreEqual(nls.GetHashCode(), nls2.GetHashCode()); }
public void Equality_5() { var nls = new NLSMap("{enG: {n: 'name', d: 'descr'}}"); var nls2 = new NLSMap("{eng: {d: 'descr', n: 'name' }}"); Aver.IsFalse(nls.Equals(nls2)); Aver.IsFalse(nls2.Equals(nls)); Aver.AreNotEqual(nls.GetHashCode(), nls2.GetHashCode()); }