public async Task LocateInGroup_ValidPath() { var group = new Group("ABPaint".ToCharArray()); group.InnerItems = new List <Item>() { new Group("Another".ToCharArray()) }; CollectionAssert.AreEqual((await ABSRegistry.LocateInGroupAsync("Another", group)).Name, "Another".ToCharArray()); }
public async Task LocateInGroup_InvalidPath() { var group = new Group("ABPaint".ToCharArray()) { InnerItems = new List <Item>() { new Group("Another".ToCharArray()) } }; Assert.AreEqual(await ABSRegistry.LocateInGroupAsync("Another2", group), null); }