Skip to content

Commit

Permalink
Added failing tests for #6729.
Browse files Browse the repository at this point in the history
  • Loading branch information
grokys committed Oct 15, 2021
1 parent 5a924fa commit 4e65b02
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions tests/Avalonia.Controls.UnitTests/ItemsRepeaterTests.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
using System.Collections.ObjectModel;
using Xunit;

namespace Avalonia.Controls.UnitTests
{
public class ItemsRepeaterTests
{
[Fact]
public void Can_Reassign_Items()
{
var target = new ItemsRepeater();
target.Items = new ObservableCollection<string>();
target.Items = new ObservableCollection<string>();
}

[Fact]
public void Can_Reassign_Items_To_Null()
{
var target = new ItemsRepeater();
target.Items = new ObservableCollection<string>();
target.Items = null;
}
}
}

0 comments on commit 4e65b02

Please sign in to comment.