public void TestComplexClassWithoutConstructor() { var x = new TestComplexClassWithoutConstructor("xF1", 1, "xP1", 1); var y = new TestComplexClassWithoutConstructor(null, 2, "yP1", null); var combined = DefaultCombiner.Instance.Combine(x, y); Assert.That(combined.F1, Is.EqualTo("xF1")); Assert.That(combined.F2, Is.EqualTo(2)); Assert.That(combined.P1, Is.EqualTo("yP1")); Assert.That(combined.P2, Is.EqualTo(1)); }
public void TestComplexClassWithoutConstructor() { var x = new TestComplexClassWithoutConstructor("xF1", 1, "xP1", 1); var y = new TestComplexClassWithoutConstructor(null, 2, "yP1", null); var combined = DefaultCombiner.Instance.Combine(x, y); Assert.That(combined.F1, Is.EqualTo("xF1")); Assert.That(combined.F2, Is.EqualTo(2)); Assert.That(combined.P1, Is.EqualTo("yP1")); Assert.That(combined.P2, Is.EqualTo(1)); }