public static void TestRemoveBetween() { OrderableStrings strings = new OrderableStrings { "W", { "U", 0 }, "I" }; Assert.True(strings.Remove("U")); Assert.AreEqual("W,I", strings.ToString()); }
public static void TestRemoveNotInclude() { OrderableStrings strings = new OrderableStrings { "W", { "E", -1 }, { "Y", 3 }, { "U", 0 }, "I" }; Assert.False(strings.Remove("o")); Assert.AreEqual("W,E,Y,U,I", strings.ToString()); }
public static void TestRemoveLast() { OrderableStrings strings = new OrderableStrings { "W", { "E", -1 }, { "Y", 3 }, { "U", 0 }, "I" }; Assert.True(strings.Remove("I")); Assert.AreEqual("W,E,Y,U", strings.ToString()); }