Example #1
0
        public void TestDuplicateInsertion()
        {
            var shoeInvemtoryManagement = new ShoeInvemtoryManagement();
            var result = shoeInvemtoryManagement.AddPairShoesToInventory(shoe1);

            Assert.Throws <Exception>(() => shoeInvemtoryManagement.AddPairShoesToInventory(shoe1));
        }
Example #2
0
        public void TestNormalInsertion()
        {
            var shoeInvemtoryManagement = new ShoeInvemtoryManagement();
            var result = shoeInvemtoryManagement.AddPairShoesToInventory(shoe1);

            Assert.Equal(shoe1, result);
        }