Ejemplo n.º 1
0
 public void SetUp()
 {
     _sut = new CmdArgFactory(new List <CmdAllowedArg>
     {
         _allowedPathArg, _allowedAllFilesArg
     });
 }
Ejemplo n.º 2
0
            public void WhenNoAllowedArgs_ThenThrowException()
            {
                var sut = new CmdArgFactory(Enumerable.Empty <CmdAllowedArg>());

                var ex = Assert.Throws <CmdArgException>(() => sut.Create("d", @"C:\"));

                Assert.That(ex.Message, Is.EqualTo("Argument name: 'd' is not allowed."));
            }