Exemplo n.º 1
0
        public void CombinableClass()
        {
            var x = new TestCombinableClass()
            {
                F1 = "xF1",
                F2 = 1
            };

            var y = new TestCombinableClass()
            {
                F1 = "yF1",
                F2 = 2
            };

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

            Assert.That(combined.F1, Is.EqualTo("xF1yF1"));
            Assert.That(combined.F2, Is.EqualTo(3));
        }
Exemplo n.º 2
0
        public void CombinableClass()
        {
            var x = new TestCombinableClass()
            {
                F1 = "xF1",
                F2 = 1
            };

            var y = new TestCombinableClass()
            {
                F1 = "yF1",
                F2 = 2
            };

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

            Assert.That(combined.F1, Is.EqualTo("xF1yF1"));
            Assert.That(combined.F2, Is.EqualTo(3));
        }