Beispiel #1
0
        public void GenericTypeInAttribute()
        {
            var x = new GenTestClass()
            {
                List = new List <string>()
                {
                    "L1"
                },
                Array = new [] { "A1" },
            };

            var y = new GenTestClass()
            {
                List = new List <string>()
                {
                    "L2"
                },
                Array = new[] { "A2" },
            };

            var combined = DefaultCombiner.Instance.Combine(x, y);

            Assert.That(combined.List, Is.EquivalentTo(new[] { "L1", "L2" }));
            Assert.That(combined.Array, Is.EquivalentTo(new[] { "A1", "A2" }));
        }
Beispiel #2
0
        public void GenericTypeInAttribute()
        {
            var x = new GenTestClass()
            {
                List = new List<string>() { "L1" },
                Array = new [] { "A1" },
            };

            var y = new GenTestClass()
            {
                List = new List<string>() { "L2" },
                Array = new[] { "A2" },
            };

            var combined = DefaultCombiner.Instance.Combine(x, y);

            Assert.That(combined.List, Is.EquivalentTo(new[] { "L1", "L2" }));
            Assert.That(combined.Array, Is.EquivalentTo(new[] { "A1", "A2" }));
        }