Avoiding throwing exception on the "All Views Tester" scenario.

This commit is contained in:
BDisp
2021-01-15 17:09:31 +00:00
parent 542c507b59
commit 0466a6ebc3
2 changed files with 15 additions and 2 deletions

View File

@@ -117,6 +117,14 @@ namespace Terminal.Gui {
Assert.Throws<ArgumentException> (null, () => h.OtherScrollBarView = v);
}
[Fact]
public void Scrolling_With_Default_Constructor_Throws_ArgumentNullException ()
{
var sbv = new ScrollBarView ();
Assert.Throws<ArgumentNullException> ("The host can't be null.", () => sbv.Position = 1);
}
[Fact]
public void Hosting_Two_Horizontal_ScrollBarView_Throws_ArgumentException ()
{