示例#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(); });
        }
示例#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);
        }
示例#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);
        }