コード例 #1
0
        public void SortShouldOrderItemsCorrectly()
        {
            // arrange
            var expected = new[] { "a", "b", "c", "d", "e" };
            var target = new[] { "c", "e", "b", "a", "d" };

            // act
            target.Sort();

            // assert
            Assert.True( target.SequenceEqual( expected ) );
        }