using CodeWalker.GameFiles; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Xunit; namespace CodeWalker.Test { public class ResourceBaseTypesTests { [Fact] public void AddingItemsToResourceSimpleArrayShouldAddItem() { var list = new ResourceSimpleArray(); var entry1 = new ClipAnimationsEntry(); list.Add(entry1); var entry2 = new ClipAnimationsEntry(); list.Add(entry2); Assert.Equal(entry1, list[0]); Assert.Equal(entry2, list[1]); list = new ResourceSimpleArray(); list.Data = new List(); list.Add(entry1); list.Add(entry2); Assert.Equal(entry1, list[0]); Assert.Equal(entry2, list[1]); } } }