Esempio n. 1
0
        public void MissingPrependTextThrow()
        {
            // ARRANGE
            var args  = new string[] { };
            var logic = new ArgumentsLogic(args);

            // ASSERT
            Assert.Throws <ArgumentException>(
                delegate { logic.GetPrependText(); });
        }
Esempio n. 2
0
        public void GetPrependText()
        {
            // ARRANGE
            var args  = new string[] { @"--prepend-text=aaa### - " };
            var logic = new ArgumentsLogic(args);

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

            // ASSERT
            Assert.AreEqual(@"aaa### - ", value);
        }