Ejemplo n.º 1
0
        public void testNotEqualsInventory()
        {
            try {
                Inventory i = new Inventory(1, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50);
                Inventory j = new Inventory(1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);

                Assert.False(i.Equals(j));
            }
            catch(Exception e) {
                Console.WriteLine("Exception in testNotEqualsInventory: " + e.Message + "\n" + e.StackTrace);
                Assert.Fail(e.Message + "\n" + e.StackTrace);
            }
        }