예제 #1
0
        public void TestUntilConst()
        {
            var expected = new UntilTestClass <string> {
                Items = new List <string> {
                    "unless", "someone", "like", "you"
                }, AfterItems = "a whole awful lot"
            };
            var actual = Roundtrip(expected);

            Assert.AreEqual(expected.Items.Count, actual.Items.Count);
            Assert.AreEqual(expected.AfterItems, actual.AfterItems);
        }
예제 #2
0
        public void PrimitiveTestUntilConst()
        {
            var expected = new UntilTestClass <int> {
                Items = new List <int> {
                    3, 2, 1
                }, AfterItems = "a whole awful lot"
            };
            var actual = Roundtrip(expected);

            Assert.AreEqual(expected.Items.Count, actual.Items.Count);
            Assert.AreEqual(expected.AfterItems, actual.AfterItems);
        }