Exemple #1
0
        public void ensureCatalogueCollectionWithEqualCustomizedProductCollectionIsEqual()
        {
            CatalogueCollection catalogueCollection = buildCatalogueCollection();

            CatalogueCollection otherCatalogueCollection = buildCatalogueCollection();

            Assert.True(catalogueCollection.Equals(otherCatalogueCollection));
        }
Exemple #2
0
        public void ensureCatalogueCollectionWithDifferentCustomizedProductCollectionIsNotEqual()
        {
            CatalogueCollection catalogueCollection = buildCatalogueCollection();

            CustomizedProductCollection customizedProductCollection = new CustomizedProductCollection("Some other collection");
            CatalogueCollection         otherCatalogueCollection    = new CatalogueCollection(customizedProductCollection);

            Assert.False(catalogueCollection.Equals(otherCatalogueCollection));
        }
Exemple #3
0
        public void ensureNullIsNotEqual()
        {
            CatalogueCollection catalogueCollection = buildCatalogueCollection();

            Assert.False(catalogueCollection.Equals(null));
        }
Exemple #4
0
        public void ensureDifferentObjectTypeIsNotEqual()
        {
            CatalogueCollection catalogueCollection = buildCatalogueCollection();

            Assert.False(catalogueCollection.Equals("this is a string"));
        }
Exemple #5
0
        public void ensureInstanceIsEqualToItself()
        {
            CatalogueCollection catalogueCollection = buildCatalogueCollection();

            Assert.True(catalogueCollection.Equals(catalogueCollection));
        }