Execute() public method

public Execute ( ) : FileSet
return FluentFs.Core.FileSet
Beispiel #1
0
        public void ExecuteShouldRunExe()
        {
            var mock = MockRepository.GenerateStub<IActionExcecutor>();
            var fileset = new FileSet();
            fileset.Include(new File(@"c:\temp\nonexistant.txt"));

            Resgen subject = new Resgen(mock).GenerateFrom(fileset).OutputTo(@"c:\temp\");
            subject.Execute();
            mock.AssertWasCalled(x=>x.Execute(Arg<Func<Executable, object>>.Is.Anything));
        }
Beispiel #2
0
        public void ExecuteShouldRunExe()
        {
            var mock    = MockRepository.GenerateStub <IActionExcecutor>();
            var fileset = new FileSet();

            fileset.Include(new File(@"c:\temp\nonexistant.txt"));

            Resgen subject = new Resgen(mock).GenerateFrom(fileset).OutputTo(@"c:\temp\");

            subject.Execute();
            mock.AssertWasCalled(x => x.Execute(Arg <Func <Executable, object> > .Is.Anything));
        }