public void ensureCatalogueCollectionWithEqualCustomizedProductCollectionIsEqual() { CatalogueCollection catalogueCollection = buildCatalogueCollection(); CatalogueCollection otherCatalogueCollection = buildCatalogueCollection(); Assert.True(catalogueCollection.Equals(otherCatalogueCollection)); }
public void ensureCatalogueCollectionWithDifferentCustomizedProductCollectionIsNotEqual() { CatalogueCollection catalogueCollection = buildCatalogueCollection(); CustomizedProductCollection customizedProductCollection = new CustomizedProductCollection("Some other collection"); CatalogueCollection otherCatalogueCollection = new CatalogueCollection(customizedProductCollection); Assert.False(catalogueCollection.Equals(otherCatalogueCollection)); }
public void ensureNullIsNotEqual() { CatalogueCollection catalogueCollection = buildCatalogueCollection(); Assert.False(catalogueCollection.Equals(null)); }
public void ensureDifferentObjectTypeIsNotEqual() { CatalogueCollection catalogueCollection = buildCatalogueCollection(); Assert.False(catalogueCollection.Equals("this is a string")); }
public void ensureInstanceIsEqualToItself() { CatalogueCollection catalogueCollection = buildCatalogueCollection(); Assert.True(catalogueCollection.Equals(catalogueCollection)); }