public void swappingElements() { // Setup Recipe r1 = new Recipe(0); Recipe r2 = new Recipe(0); rm.Add(r1); // Pre-condition Assert.AreNotSame(r1, r2); Assert.AreSame(r1, rm.GetRecipeAt(0)); // Exercise bool success = rm.ChangeElement(0, r2); // Verify Assert.AreSame(r2, rm.GetRecipeAt(0)); Assert.AreEqual(true, success); }