Closed Tr0sT closed 4 years ago
Fixed and published - nuget.org/packages/Goblinfactory.Konsole/5.4.3. Please test and let me know if any issues.
[Test]
public void render_null_as_NULL()
{
var console = new MockConsole(80, 20);
var form = new Form(console);
Person p = null;
console.WriteLine("line1");
form.Write(p);
console.WriteLine("line2");
var expected = new[]
{
"line1",
" ┌────────────────────────────────── Person ──────────────────────────────────┐",
" │ Null │",
" └─────────────────────────────────────────────────────────────────────────────┘",
"line2"
};
console.BufferWrittenTrimmed.Should().BeEquivalentTo(expected);
}
new Form().Write(null);
should not throw exception. Instead it should write "Null"