public void Require() { var path = GetTestFile(); var conf = new ConfFile(); Assert.DoesNotThrow(() => conf.Require(path)); Assert.Throws <FileNotFoundException>(() => conf.Require("some_imaginary_file_that_doesnt exist.nope")); }
public void GetByRequire() { var path = GetTestFile(); var conf = new ConfFile(); conf.Require(path); Get(conf); }