Exemple #1
0
        public void TestEquals_ShouldCompareOnlyTheValuesOfRowAndCol()
        {
            Bow bow1 = new Bow(10, 20);
            Bow bow2 = new Bow(10, 20);
            Bow bow3 = new Bow(7, 9);

            Assert.IsTrue(bow1.Equals(bow2));
            Assert.IsFalse(bow1.Equals(bow3));
        }
Exemple #2
0
        public void TestEquals_CompareDifferentTypesOfObjects()
        {
            Bow bow = new Bow(10, 20);
            int row = 10;

            Assert.IsFalse(bow.Equals(row));
        }