Esempio n. 1
0
        public void TestOrderKept()
        {
            var voc  = new VirtualOrderContainer <Foo>("", new[] { _f2, _f1 });
            var voc2 = new VirtualOrderContainer <Foo>(voc.GetStoredOrder(), new[] { _f1, _f2 });

            voc2.OrderedItems.ShouldBe((IEnumerable <Foo>)voc.OrderedItems);
        }
        public void TestOrderKept()
        {
            var voc  = new VirtualOrderContainer <Foo>("", new[] { _f2, _f1 });
            var voc2 = new VirtualOrderContainer <Foo>(voc.GetStoredOrder(), new[] { _f1, _f2 });

            CollectionAssert.AreEqual(voc.OrderedItems, voc2.OrderedItems);
        }