Example #1
0
        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"));
        }
Example #2
0
        public void GetByRequire()
        {
            var path = GetTestFile();
            var conf = new ConfFile();

            conf.Require(path);

            Get(conf);
        }