Esempio n. 1
0
        public void InvalidFileNumberThrow()
        {
            // ARRANGE
            var args  = new string[] { @"--file-number-seed=XXX" };
            var logic = new ArgumentsLogic(args);

            // ASSERT
            Assert.Throws <ArgumentException>(
                delegate { logic.GetFileNumberSeed(); });
        }
Esempio n. 2
0
        public void MissingFileNumberReturnsDefault()
        {
            // ARRANGE
            var args  = new string[] { };
            var logic = new ArgumentsLogic(args);

            // ACT
            var result = logic.GetFileNumberSeed();

            // ASSERT
            Assert.AreEqual(1, result);
        }
Esempio n. 3
0
        public void GetFileNumberSeed()
        {
            // ARRANGE
            var args  = new string[] { @"--file-number-seed=666" };
            var logic = new ArgumentsLogic(args);

            // ACT
            var value = logic.GetFileNumberSeed();

            // ASSERT
            Assert.AreEqual(666, value);
        }