Skip to content

Commit

Permalink
Automated dotnet-format update (xamarin#12500)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] authored Oct 16, 2020
1 parent cbcb0f6 commit 5188b70
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Xamarin.Forms.Core.UnitTests/MultiBindingTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,8 @@ public void TestConverterWithStringFormat()
{
var property = BindableProperty.Create("foo", typeof(string), typeof(MockBindable), null);
var bindable = new MockBindable();
var multibinding = new MultiBinding {
var multibinding = new MultiBinding
{
Bindings = {
new Binding ("foo"),
new Binding ("bar", stringFormat: "{0:000}"),
Expand All @@ -386,8 +387,8 @@ public void TestConverterWithStringFormat()
Converter = new StringConcatenationConverter(),
StringFormat = "Hello {0}"
};
Assert.DoesNotThrow(()=>bindable.SetBinding(property, multibinding));
Assert.DoesNotThrow(()=>bindable.BindingContext = new { foo = "FOO", bar = 42, baz = "BAZ" });
Assert.DoesNotThrow(() => bindable.SetBinding(property, multibinding));
Assert.DoesNotThrow(() => bindable.BindingContext = new { foo = "FOO", bar = 42, baz = "BAZ" });
Assert.That(bindable.GetValue(property), Is.EqualTo("Hello FOO 042 BAZ"));
}

Expand Down

0 comments on commit 5188b70

Please sign in to comment.