예제 #1
0
        public void BarRating_SortUnknownEnum()
        {
            // Arrange
            BarRating rating = new BarRating();

            // Act
            rating.Sort((CompareType)99999);

            // Assert
        }
        public void BarRating_Sort_NormalEnum([Range(0, 3, 1)] CompareType compareType)
        {
            // Arrange
            var rating = new BarRating();

            // Act
            rating.Sort(compareType);
            // Assert, should be no exceptions.
            //Not sure if should test if sorting was successful. Maybe it's covered in Comparers unit testing?
        }