У меня есть проект MVC, где у меня есть настройка библиотеки классов в качестве моего тестового проекта. Однако при использовании NUnit для запуска моих тестов он жалуется на отсутствие Nhibernate.config (который находится в моей корзине веб-проекта.
Точная ошибка:
<solutionName>.UnitTests.CatelogEditing.Can_View_All_Products_On_Admin_Product_List:
System.TypeInitializationException : The type initializer for '<solutionName>.Domain.Infrastructure.BootStrapper' threw an exception.
----> NHibernate.Cfg.HibernateConfigException : An exception occurred during configuration of persistence layer.
----> System.IO.FileNotFoundException : Could not find file '<myrootpath>.UnitTests\bin\Debug\nhibernate.config'.
Любая помощь очень ценится.