You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
531 B
20 lines
531 B
using NUnit.Framework;
|
|
|
|
namespace UnityEngine.Rendering.Tests
|
|
{
|
|
class ObservableListTests
|
|
{
|
|
[Test]
|
|
public void ObservableList_CompletelyCleared()
|
|
{
|
|
var observableList = new ObservableList<int>();
|
|
|
|
for(int i = 0; i < 5; i++)
|
|
observableList.Add(i);
|
|
|
|
observableList.Clear();
|
|
Assert.AreEqual(0, observableList.Count,
|
|
$"{observableList.Count} elements remaining after ObservableList.Clear(), expected 0");
|
|
}
|
|
}
|
|
}
|