Ejemplo n.º 1
0
        public void GivenAnArtist_WhenComparedToAnIdenticalArtist_ThenTheyAreEqual()
        {
            ArtistData ad1 = new ArtistData("artistName", "country");
            ArtistData ad2 = new ArtistData("artistName", "country");

            Assert.IsTrue(ad1.Equals(ad2));
        }
Ejemplo n.º 2
0
        public void GivenAnArtist_WhenComparedToAnArtistWithDifferentNameButSameCountry_ThenTheyAreNotEqual()
        {
            ArtistData ad1 = new ArtistData("artistName1", "country");
            ArtistData ad2 = new ArtistData("artistName2", "country");

            Assert.IsFalse(ad1.Equals(ad2));
        }