コード例 #1
0
        public void FilmFactory_builds_a_film_from_path_and_filesystem()
        {
            var   fileSystem = new MockFileSystem();
            IFilm film       = FilmFactory <FilmFromFolder> .BuildFilm(@"C:\Media\A", fileSystem);

            Assert.AreEqual(typeof(FilmFromFolder), film.GetType());
        }
コード例 #2
0
 public void It_should_build_a_mock_film_from_a_path()
 {
     Assert.AreEqual(typeof(FilmMock), FilmFactory <FilmMock> .BuildFilm(@"C:\Media\A").GetType());
 }
コード例 #3
0
 protected virtual void OnChangeAction(string path, IFilmProcessor filmProcessor)
 {
     filmProcessor.Process(FilmFactory <T> .BuildFilm(path));
 }