예제 #1
0
        public void SortProjectRolesAssignments_DefaultSort_CorrectResult()
        {
            // Arange
            var sorting = new Sorting();
            var result  = SortingHelper.SortProjectRolesAssignments(sorting);

            // Act
            Assert.AreEqual(result, "groupName");
        }
예제 #2
0
        public void SortProjectRolesAssignments_RoleNameDesc_CorrectResult()
        {
            // Arange
            var sorting = new Sorting {
                Sort = "roleName", Order = SortOrder.Desc
            };
            var result = SortingHelper.SortProjectRolesAssignments(sorting);

            // Act
            Assert.AreEqual(result, "-roleName");
        }