public void CombineIgnoreAttr() { var prev = new TestAttrClass() { PString = null, FString1 = null, }; var next = new TestAttrClass() { PString = "next", FString1 = "next", }; var result = DefaultCombiner.Instance.Combine(prev, next); Assert.That(result.PString, Is.EqualTo("next")); Assert.That(result.FString1, Is.EqualTo(null)); }
public void SimpleCombinerForClass() { var x = new TestAttrClass() { F1 = "xF1", F2 = 1 }; var y = new TestAttrClass() { 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)); }
public void CombineIgnoreAttr() { var prev = new TestAttrClass() { PString = null, FString1 = null, }; var next = new TestAttrClass() { PString = "next", FString1 = "next", }; var result = DefaultCombiner.Instance.Combine(prev, next); Assert.That(result.PString, Is.EqualTo("next")); Assert.That(result.FString1, Is.EqualTo(null)); }