Example #1
0
        public void TestComponentEquality()
        {
            Star star1 = new Star(new Vector2D(3, 3), 3.0);
            Star star2 = new Star(new Vector2D(3, 3), 3.0);

            Assert.IsFalse(star2.Equals(star1));

            //differentiating between 2 objects with same IDs
            Ship ship1 = new Ship(4, "yo");
            Ship ship2 = new Ship(4, "hmm");

            Assert.IsFalse(ship1.Equals(ship2));
        }