Add row and column accessors for tables and grids

This commit is contained in:
Patrik Svensson
2020-10-26 11:51:35 +01:00
committed by Patrik Svensson
parent 3e5e22d6c2
commit e7f497050c
30 changed files with 511 additions and 162 deletions

View File

@@ -53,7 +53,7 @@ namespace Spectre.Console.Tests.Unit
grid.AddRow("Foo");
// Then
grid.RowCount.ShouldBe(1);
grid.Rows.Count.ShouldBe(1);
}
[Fact]

View File

@@ -98,7 +98,7 @@ namespace Spectre.Console.Tests.Unit
table.AddRow("Foo");
// Then
table.RowCount.ShouldBe(1);
table.Rows.Count.ShouldBe(1);
}
[Fact]