public void GetDigitsRange_NotRealTicket_ArgumentException()
        {
            //arrange
            var determinator = new MoskowLuckyTicketDeterminator();

            //act

            //assert
            Assert.Throws <ArgumentException>(
                () => determinator.GetDigitsRange(new Ticket(-10, -10)));
        }
        public void GetDigitsRange_Null_NullReferenceException()
        {
            //arrange
            var determinator = new MoskowLuckyTicketDeterminator();

            //act

            //assert
            Assert.Throws <NullReferenceException>(
                () => determinator.GetDigitsRange(null));
        }
        public void IsLuckyTicket_NotLuckyTicketNumber555000Digit6_False()
        {
            //arrange
            var determinator = new MoskowLuckyTicketDeterminator();
            int number       = 555000;
            int digit        = 6;

            //act
            var actual = determinator.IsLuckyTicket(new Ticket(number, digit));

            //assert
            Assert.False(actual);
        }
        public void IsLuckyTicket_LuckyTicketNumber123123Digit6_True()
        {
            //arrange
            var determinator = new MoskowLuckyTicketDeterminator();
            int number       = 123123;
            int digit        = 6;

            //act
            var actual = determinator.IsLuckyTicket(new Ticket(number, digit));

            //assert
            Assert.True(actual);
        }
        public void GetDigitsRange_1Number6Digits_LastItem1()
        {
            //arrange
            var determinator = new MoskowLuckyTicketDeterminator();
            int number       = 1;
            int digits       = 6;
            int expected     = 1;

            //act
            var actual = determinator.GetDigitsRange(
                new Ticket(number, digits));

            //assert
            Assert.Equal(expected, actual[actual.Length - 1]);
        }