public void UniqueSetTest() { var bag = new SortedBag <int> { 1, 2, 3, 4, 5, 6 }; var set = bag.UniqueSet; Assert.Equal(bag.OrderBy(x => x), set); }