Exemplo n.º 1
0
        public void SortProjectRolesAssignments_DefaultSort_CorrectResult()
        {
            // Arange
            var sorting = new Sorting();
            var result  = SortingHelper.SortProjectRolesAssignments(sorting);

            // Act
            Assert.AreEqual(result, "groupName");
        }
Exemplo n.º 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");
        }