public void CheckCategoryOfferEqualityNullFailInverted() { OfferCategory category1 = new OfferCategory(EOfferWebsite.Allegro, 1); Assert.AreNotEqual(null, category1); Assert.False(category1.Equals(null)); }
public void CheckCategoryOfferEqualityFail() { OfferCategory category1 = new OfferCategory(EOfferWebsite.Allegro, 1); OfferCategory category2 = new OfferCategory(EOfferWebsite.Allegro, "testName"); Assert.AreNotEqual(category1, category2); Assert.False(category1.Equals(category2)); }
public void CheckCategoryOfferEqualityPass() { OfferCategory category1 = new OfferCategory(EOfferWebsite.Allegro, 1); OfferCategory category2 = new OfferCategory(EOfferWebsite.Allegro, 1); Assert.AreEqual(category1, category2); Assert.True(category1.Equals(category2)); }