public void Check_That_Publisher_Comparer_Throws_Exception_When_Obj1_And_Obj2_Have_Wrong_Type()
        {
            var comparer = new PublisherComparer();

            var obj1 = new Object();
            var obj2 = new Object();

            comparer.AreEqual(obj1, obj2);
        }
        public void Check_That_Publisher_Comparer_Returns_False_For_Not_Equal_Publishers()
        {
            var publisher1 = new Publisher
            {
                IsReadonly             = true,
                NorthwindId            = 5,
                Games                  = new List <Game>(),
                PublisherId            = 6,
                HomePage               = "ww.com",
                PublisherLocalizations = new List <PublisherLocalization>
                {
                    new PublisherLocalization
                    {
                        CompanyName = "name",
                        Description = "description",
                        LanguageId  = 1,
                        Language    = new Language
                        {
                            Name       = "English",
                            Code       = "en",
                            LanguageId = 1,
                        }
                    }
                }
            };

            var publisher2 = new Publisher
            {
                IsReadonly             = true,
                NorthwindId            = 5,
                Games                  = new List <Game>(),
                PublisherId            = 5,
                HomePage               = "ww.com",
                PublisherLocalizations = new List <PublisherLocalization>
                {
                    new PublisherLocalization
                    {
                        CompanyName = "name234",
                        Description = "description",
                        LanguageId  = 1,
                        Language    = new Language
                        {
                            Name       = "English",
                            Code       = "en",
                            LanguageId = 1,
                        }
                    }
                }
            };

            var comparer = new PublisherComparer();

            bool result = comparer.AreEqual(publisher1, publisher2);

            Assert.IsTrue(!result);
        }