Esempio n. 1
0
        public static void DigitsTest()
        {
            // Arrange
            long       n        = 6872368725336316;
            List <int> expected = new List <int> {
                6, 8, 7, 2, 3, 6, 8, 7, 2, 5, 3, 3, 6, 3, 1, 6
            };

            expected.Reverse();
            //Act
            var actual = UtilityFunctions.Digits(n);

            //Assert
            Assert.True(actual.SequenceEqual(expected));
        }