Skip to content

Commit f5ff736

Browse files
Merge branch 'Update-to-.NET-10' of https://github.com/CommunityToolkit/Maui.Markup into Update-to-.NET-10
2 parents 29eb001 + 65d2095 commit f5ff736

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<Project>
33
<PropertyGroup>
44
<Nullable>enable</Nullable>
5-
<NoWarn>NETSDK1023;XCODE_26_0_PREVIEW</NoWarn>
5+
<NoWarn>NETSDK1023</NoWarn>
66
<NetVersion>net10.0</NetVersion>
77
<LangVersion>preview</LangVersion>
88
<ImplicitUsings>enable</ImplicitUsings>

src/CommunityToolkit.Maui.Markup.UnitTests/TypedBindingExtensionsTests.cs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -51,40 +51,40 @@ public void BindCommandThrowsArgumentNullExceptionWhenParameterHandlersNull()
5151
[Test]
5252
public void BindCommandWithDefaults()
5353
{
54-
var textCell = new Button
54+
var button = new Button
5555
{
5656
BindingContext = viewModel
5757
};
5858

59-
textCell.BindCommand(static (ViewModel vm) => vm.Command);
59+
button.BindCommand(static (ViewModel vm) => vm.Command);
6060

61-
BindingHelpers.AssertTypedBindingExists(textCell, Button.CommandProperty, BindingMode.Default, viewModel);
62-
Assert.That(BindingHelpers.GetBinding(textCell, Button.CommandParameterProperty), Is.Null);
61+
BindingHelpers.AssertTypedBindingExists(button, Button.CommandProperty, BindingMode.Default, viewModel);
62+
Assert.That(BindingHelpers.GetBinding(button, Button.CommandParameterProperty), Is.Null);
6363
}
6464

6565
[Test]
6666
public void BindCommandWithParameters()
6767
{
6868
ArgumentNullException.ThrowIfNull(viewModel);
6969

70-
var textCell = new Button
70+
var button = new Button
7171
{
7272
BindingContext = viewModel
7373
};
7474

75-
textCell.BindCommand(
75+
button.BindCommand(
7676
static (ViewModel vm) => vm.Command,
7777
commandBindingMode: BindingMode.OneTime,
7878
parameterGetter: static (ViewModel vm) => vm.Id,
7979
parameterBindingMode: BindingMode.OneWay);
8080

81-
BindingHelpers.AssertTypedBindingExists(textCell, Button.CommandProperty, BindingMode.OneTime, viewModel);
82-
BindingHelpers.AssertTypedBindingExists(textCell, Button.CommandParameterProperty, BindingMode.OneWay, viewModel);
81+
BindingHelpers.AssertTypedBindingExists(button, Button.CommandProperty, BindingMode.OneTime, viewModel);
82+
BindingHelpers.AssertTypedBindingExists(button, Button.CommandParameterProperty, BindingMode.OneWay, viewModel);
8383

8484
Assert.Multiple(() =>
8585
{
86-
Assert.That(viewModel.Command, Is.EqualTo(textCell.Command));
87-
Assert.That(viewModel.Id, Is.EqualTo(textCell.CommandParameter));
86+
Assert.That(viewModel.Command, Is.EqualTo(button.Command));
87+
Assert.That(viewModel.Id, Is.EqualTo(button.CommandParameter));
8888
});
8989
}
9090

@@ -778,4 +778,4 @@ public NestedViewModel? Model
778778
set => SetProperty(ref field, value);
779779
}
780780
}
781-
}
781+
}

0 commit comments

Comments
 (0)