public void TestConfigFilmFactory() { var factory = new ConfigFilmFactory(); var film = factory.LoadFilm(Path.Combine(_assetPath, "film_1.csv")); Assert.NotNull(film); }
public void TestConfigFilmFactoryNegativeSalary() { var factory = new ConfigFilmFactory(); Assert.Throws <NegativeValueException>(() => { factory.LoadFilm(Path.Combine(_assetPath, "film_error_3.csv")); }); }
public void TestConfigFilmFactoryIncorrectSalary() { var factory = new ConfigFilmFactory(); Assert.Throws <StringFormatException>(() => { factory.LoadFilm(Path.Combine(_assetPath, "film_error_2.csv")); }); }