committed by
GitHub
3 changed files with 32 additions and 5 deletions
@ -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; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue