public void AddRepresentative() { var bag1 = new Bag <string>(StringComparer.InvariantCultureIgnoreCase); bag1.AddRepresentative("Hello"); bag1.AddRepresentative("foo"); bag1.AddRepresentative(""); bag1.AddRepresentative("HELLO"); bag1.AddRepresentative("Foo"); bag1.AddRepresentative("foo"); bag1.AddRepresentative(null); bag1.AddRepresentative("hello"); bag1.AddRepresentative("Eric"); bag1.AddRepresentative(null); InterfaceTests.TestReadWriteCollectionGeneric(bag1, new[] { null, null, "", "Eric", "foo", "foo", "foo", "hello", "hello", "hello" }, false); }