Example #1
0
 public void GetModelsDirectoryThrowsTests(string root, string config, bool acceptUnsafe)
 {
     Assert.Throws <ConfigurationErrorsException>(() =>
     {
         var modelsDirectory = ModelsBuilderConfig.GetModelsDirectory(root, config, acceptUnsafe);
     });
 }
Example #2
0
 public void GetModelsDirectoryTests(string root, string config, bool acceptUnsafe, string expected)
 {
     Assert.AreEqual(expected, ModelsBuilderConfig.GetModelsDirectory(root, config, acceptUnsafe));
 }