示例#1
0
 public async Task TestVersionSort(string preSortS, string postSortS)
 {
     string[]? preSort  = preSortS.Split(new[] { ',' });
     string[]? postSort = postSortS.Split(new[] { ',' });
     System.Collections.Generic.IEnumerable <string>?result = BaseProjectManager.SortVersions(preSort);
     Assert.IsTrue(result.SequenceEqual(postSort), $"Result {string.Join(',', result)} != {string.Join(',', postSort)}");
 }
示例#2
0
        public async Task TestVersionSort(string preSortS, string postSortS)
        {
            var preSort  = preSortS.Split(new[] { ',' });
            var postSort = postSortS.Split(new[] { ',' });
            var result   = BaseProjectManager.SortVersions(preSort);

            Assert.IsTrue(result.SequenceEqual(postSort), $"Result {string.Join(',', result)} != {string.Join(',', postSort)}");
        }