Beispiel #1
0
        public IFolderBuilder EnterFolder(string folderName)
        {
            var folder = new FolderMock(folderName);

            Add(folder);
            return(folder);
        }
Beispiel #2
0
		public void TestIncludeMultipleFiles()
		{
			IFile[] files = new IFile[] { new FileMock("OMNSetup.msi"), new FileMock("OtherFile.ext") };
			IFolder root = new FolderMock("root", new FolderMock("Bin", files));
			FileFinder finder = new FileFinder(root);

			Assert.AreEqual(files, finder.FindAll(new InclusionPattern(@"Bin\*")).ToArray());
		}
Beispiel #3
0
        public void TestIncludeSingleFile()
        {
        	IFile expected = new FileMock("OMNSetup.msi");
        	IFolder root = new FolderMock("root", new FolderMock("Bin", expected, new FileMock("OtherFile.ext")));
        	FileFinder finder = new FileFinder(root);
            
			Assert.AreEqual(expected, finder.FindAll(new InclusionPattern(@"Bin\OMNSetup.msi")).Single());
        }
        public void TestIncludeMultipleFiles()
        {
            IFile[]    files  = new IFile[] { new FileMock("OMNSetup.msi"), new FileMock("OtherFile.ext") };
            IFolder    root   = new FolderMock("root", new FolderMock("Bin", files));
            FileFinder finder = new FileFinder(root);

            Assert.AreEqual(files, finder.FindAll(new InclusionPattern(@"Bin\*")).ToArray());
        }
        public void TestIncludeSingleFile()
        {
            IFile      expected = new FileMock("OMNSetup.msi");
            IFolder    root     = new FolderMock("root", new FolderMock("Bin", expected, new FileMock("OtherFile.ext")));
            FileFinder finder   = new FileFinder(root);

            Assert.AreEqual(expected, finder.FindAll(new InclusionPattern(@"Bin\OMNSetup.msi")).Single());
        }
Beispiel #6
0
		public IFolderBuilder EnterFolder(string folderName)
		{
			var folder = new FolderMock(folderName);
			Add(folder);
			return folder;
		}