コード例 #1
0
        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());
        }
コード例 #2
0
        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);
        }