Assert column line width length for extra safety

This commit is contained in:
Salman Ahmed 2024-01-10 17:51:27 +03:00
parent 7ca4d85441
commit 7b848e1458
1 changed files with 1 additions and 0 deletions

View File

@ -126,6 +126,7 @@ public void TestParseArrayWithSomeEmptyElements()
var configs = decoder.Decode(stream);
Assert.That(configs.Count, Is.EqualTo(1));
Assert.That(configs[0].ColumnLineWidth.Length, Is.EqualTo(5));
Assert.That(configs[0].ColumnLineWidth[0], Is.EqualTo(3));
Assert.That(configs[0].ColumnLineWidth[1], Is.EqualTo(0)); // malformed entry, should be parsed as zero
Assert.That(configs[0].ColumnLineWidth[2], Is.EqualTo(3));