mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
* Refactored test namespaces. Moved some tests that were in wrong project. Code cleanup * Parrallel -> Parallel
30 lines
717 B
C#
30 lines
717 B
C#
using Xunit.Abstractions;
|
|
|
|
namespace UnitTests_Parallelizable.ViewTests;
|
|
|
|
[Collection ("Global Test Setup")]
|
|
public class AdornmentSubViewTests ()
|
|
{
|
|
[Fact]
|
|
public void Setting_Thickness_Causes_Adornment_SubView_Layout ()
|
|
{
|
|
var view = new View ();
|
|
var subView = new View ();
|
|
view.Margin.Add (subView);
|
|
view.BeginInit ();
|
|
view.EndInit ();
|
|
var raised = false;
|
|
|
|
subView.SubViewLayout += LayoutStarted;
|
|
view.Margin.Thickness = new Thickness (1, 2, 3, 4);
|
|
view.Layout ();
|
|
Assert.True (raised);
|
|
|
|
return;
|
|
void LayoutStarted (object sender, LayoutEventArgs e)
|
|
{
|
|
raised = true;
|
|
}
|
|
}
|
|
}
|