public void WithObjectAndValuesFuncAndConcatFunc() { var obj = new ToStringObject(); obj .ToString(x => new List <object> { x.Id, x.Name }, (s1, s2) => $"{s1}/{s2}") .Should().Be($"{obj.Id}/{obj.Name}"); }
public void WithObjectAndValuesFunc() { var obj = new ToStringObject(); obj .ToString(x => new List <object> { x.Id, x.Name }) .Should().Be($"{obj.Id}, {obj.Name}"); }