public async Task Contains_TestAsync()
        {
            var categoryFilter = new UserCategoryFilter()
            {
                HasParent = true
            };
            var category = await categoryFilter.GetUserCategoryAsync(app);

            var categoryPath = category.Path;
            var contains     = userCategoryCollection.Dispatcher.Invoke(() => userCategoryCollection.Contains(categoryPath));

            Assert.IsTrue(contains);
        }
Beispiel #2
0
 public static Task <bool> ContainsAsync(this IUserCategoryCollection userCategoryCollection, string categoryPath)
 {
     return(userCategoryCollection.Dispatcher.InvokeAsync(() => userCategoryCollection.Contains(categoryPath)));
 }
 public void Contains()
 {
     categories.Contains(PathUtility.Separator);
 }