Skip to content

Commit

Permalink
Revert single new test, as necessary API wasn't backported
Browse files Browse the repository at this point in the history
  • Loading branch information
maxkatz6 committed Feb 27, 2024
1 parent b229779 commit f95a329
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions tests/Avalonia.Controls.UnitTests/TextBlockTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,27 +30,6 @@ public void Default_Text_Value_Should_Be_Null()
Assert.Equal(null, textBlock.Text);
}

[Fact]
public void Calling_Measure_Should_Update_Constraint_And_TextLayout()
{
using (UnitTestApplication.Start(TestServices.MockPlatformRenderInterface))
{
var textBlock = new TestTextBlock { Text = "Hello World" };

textBlock.Measure(new Size(100, 100));

var textLayout = textBlock.TextLayout;

Assert.Equal(new Size(100,100), textBlock.Constraint);

textBlock.Measure(new Size(50, 100));

Assert.Equal(new Size(50, 100), textBlock.Constraint);

Assert.NotEqual(textLayout, textBlock.TextLayout);
}
}

[Fact]
public void Changing_InlinesCollection_Should_Invalidate_Measure()
{
Expand Down Expand Up @@ -349,10 +328,5 @@ public void TextBlock_TextLines_Should_Be_Empty()
Assert.NotEqual(count, count1);
}
}

private class TestTextBlock : TextBlock
{
public Size Constraint => _constraint;
}
}
}

0 comments on commit f95a329

Please sign in to comment.