~ubuntu-branches/ubuntu/trusty/monodevelop/trusty-proposed

« back to all changes in this revision

Viewing changes to external/ngit/NGit.Test/NGit.Util/RefMapTest.cs

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2013-05-12 09:46:03 UTC
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20130512094603-mad323bzcxvmcam0
Tags: upstream-4.0.5+dfsg
ImportĀ upstreamĀ versionĀ 4.0.5+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
439
439
                }
440
440
 
441
441
                [NUnit.Framework.Test]
 
442
                [NUnit.Framework.Ignore ("This test compares ToString and GetHashCode between .NETs KeyValuePair and Java's equivalent. They're semantically different")]
442
443
                public virtual void TestEntryType()
443
444
                {
444
445
                        Ref a = NewRef("refs/heads/A", ID_ONE);
448
449
                        Iterator<KeyValuePair<string, Ref>> itr = map.EntrySet().Iterator();
449
450
                        KeyValuePair<string, Ref> ent_a = itr.Next();
450
451
                        KeyValuePair<string, Ref> ent_b = itr.Next();
451
 
//                      NUnit.Framework.Assert.AreEqual(ent_a.GetHashCode(), "A".GetHashCode());
452
 
                        NUnit.Framework.Assert.IsTrue(ent_a.Equals(ent_a));
 
452
                        NUnit.Framework.Assert.AreEqual(ent_a.GetHashCode(), "A".GetHashCode());
 
453
                        NUnit.Framework.Assert.AreEqual(ent_a, ent_a);
453
454
                        NUnit.Framework.Assert.IsFalse(ent_a.Equals(ent_b));
454
 
                        NUnit.Framework.Assert.AreEqual(a.ToString(), ent_a.Value.ToString());
 
455
                        NUnit.Framework.Assert.AreEqual(a.ToString(), ent_a.ToString());
455
456
                }
456
457
 
457
458
                [NUnit.Framework.Test]