Esempio n. 1
0
        public void ensureCatalogueCollectionWithEqualCustomizedProductCollectionIsEqual()
        {
            CatalogueCollection catalogueCollection = buildCatalogueCollection();

            CatalogueCollection otherCatalogueCollection = buildCatalogueCollection();

            Assert.True(catalogueCollection.Equals(otherCatalogueCollection));
        }
Esempio n. 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));
        }
Esempio n. 3
0
        public void ensureNullIsNotEqual()
        {
            CatalogueCollection catalogueCollection = buildCatalogueCollection();

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

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

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