public void Delegates_ToString() { var node = new NodeFactory().CreateBlankNode(); var wrapper = new MockWrapperNode(node); var expected = node.ToString(); var actual = wrapper.ToString(); Assert.Equal(expected, actual); }
public void Delegates_ToString_formatter_segment() { var node = new NodeFactory().CreateBlankNode(); var wrapper = new MockWrapperNode(node); var formatter = new CsvFormatter(); var expected = node.ToString(formatter, TripleSegment.Subject); var actual = wrapper.ToString(formatter, TripleSegment.Subject); Assert.Equal(expected, actual); }