mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-02 01:03:29 +01:00
Avoiding throwing exception on the "All Views Tester" scenario.
This commit is contained in:
@@ -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 ()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user