Skip to content

Commit

Permalink
[housekeeping] Automated PR to fix formatting errors (#2060)
Browse files Browse the repository at this point in the history
Automated dotnet-format update

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] authored Jul 25, 2024
1 parent f242cec commit 9f39e33
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ public void VariableMultiConverter(object[]? value, MultiBindingCondition type,
var result = variableMultiConverter.Convert(value, typeof(bool), null, CultureInfo.CurrentCulture);
Assert.Equal(result, expectedResult);
}

[Fact]
public void NonNullableNotValid()
{
var contentPage = new ContentPage();

var multiBinding = new MultiBinding
{
Bindings =
Bindings =
[
new Binding(nameof(ContentPage.IsEnabled), source: contentPage, converter: new InvertedBoolConverter()),
new Binding(nameof(ContentPage.IsVisible), source: contentPage, converter: new InvertedBoolConverter())
Expand All @@ -58,14 +58,14 @@ public void NonNullableNotValid()

var stackLayout = new VerticalStackLayout();
stackLayout.SetBinding(VerticalStackLayout.IsClippedToBoundsProperty, multiBinding);

contentPage.Content = stackLayout;

Assert.False(stackLayout.IsClippedToBounds);

contentPage.IsEnabled = false;
contentPage.IsVisible = false;

Assert.True(stackLayout.IsClippedToBounds);
}
}

0 comments on commit 9f39e33

Please sign in to comment.