public void PropertyContainer_GetCount() { var container = new TestListContainer { Int32List = new List <int> { 1, 2, 3, 4, 5 } }; Assert.That(PropertyContainer.GetCount(ref container, nameof(TestListContainer.Int32List)), Is.EqualTo(5)); }
public void PropertyContainer_SetCount() { var container = new TestListContainer { Int32List = new List <int> { 1, 2, 3, 4, 5 } }; PropertyContainer.SetCount(ref container, nameof(TestListContainer.Int32List), 10); Assert.That(container.Int32List.Count, Is.EqualTo(10)); }