Exemplo n.º 1
0
        public void TestConcat()
        {
            using (var list1 = new SList <OpaqueInt> ())
                using (var list2 = new SList <OpaqueInt> ()) {
                    list1.Append(null);
                    Assume.That(list1.Length, Is.EqualTo(1));
                    list2.Append(null);
                    list2.Append(null);
                    Assume.That(list2.Length, Is.EqualTo(2));
                    list1.Concat(list2);
                    Assert.That(list1.Length, Is.EqualTo(3));
                    Assert.That(list2.Length, Is.EqualTo(0));
                    Assert.That(() => list1.Concat(null), Throws.ArgumentNullException);
                }

            Utility.AssertNoGLibLog();
        }