Beispiel #1
0
        public void EmptyListBindingTest()
        {
            var expected = new PrimitiveListBindingClass();
            var actual   = Roundtrip(expected);

            Assert.AreEqual(0, actual.Ints.Count);
        }
Beispiel #2
0
        public void PrimitiveListBindingTest()
        {
            var expected = new PrimitiveListBindingClass {
                Ints = new List <int> {
                    1, 2, 3
                }
            };
            var actual = Roundtrip(expected);

            Assert.AreEqual(expected.Ints.Count, actual.ItemCount);
        }