예제 #1
0
        public void OrderBy_IsSet(string orderBy)
        {
            //arrange
            //act
            var value = new PerfLogListBase()
            {
                OrderBy = orderBy
            };

            //assert
            Assert.Equal(orderBy, value.OrderBy);
            Assert.True(value.OrderAscending);
        }
예제 #2
0
        public void OrderAscending_IsSet(string orderBy, bool expectedOrderAscending)
        {
            //arrange
            var value = new PerfLogListBase()
            {
                OrderBy = "AAA"
            };

            //act
            value.OrderBy = orderBy;
            //assert
            Assert.Equal(orderBy, value.OrderBy);
            Assert.Equal(expectedOrderAscending, value.OrderAscending);
        }