public void TestDuplicateInsertion() { var shoeInvemtoryManagement = new ShoeInvemtoryManagement(); var result = shoeInvemtoryManagement.AddPairShoesToInventory(shoe1); Assert.Throws <Exception>(() => shoeInvemtoryManagement.AddPairShoesToInventory(shoe1)); }
public void TestNormalInsertion() { var shoeInvemtoryManagement = new ShoeInvemtoryManagement(); var result = shoeInvemtoryManagement.AddPairShoesToInventory(shoe1); Assert.Equal(shoe1, result); }