예제 #1
0
        public void EqualsReturnsFalseWhenDifferent()
        {
            ReplacerEntry entry1 = new ReplacerEntry("o", "m");
            ReplacerEntry entry2 = new ReplacerEntry("o", "t");

            Assert.That(entry1.Equals(entry2), Is.False);

            ReplacerEntry entry3 = new ReplacerEntry("t", "m");

            Assert.That(entry1.Equals(entry3), Is.False);
        }
예제 #2
0
        public void EqualsReturnsTrueWhenEqual()
        {
            ReplacerEntry entry1 = new ReplacerEntry("o", "m");
            ReplacerEntry entry2 = new ReplacerEntry("o", "m");

            Assert.That(entry1.Equals(entry2), Is.True);
        }
예제 #3
0
        public void EqualsObjReturnsFalseWhenDifferentType()
        {
            ReplacerEntry entry1 = new ReplacerEntry("o", "m");

            Assert.That(entry1.Equals(5), Is.False);
        }