Beispiel #1
0
        public void find_the_project_root_from_a_solution_with_multiple_docs_returns_null()
        {
            var folder =
                ".".ToFullPath().ParentDirectory().ParentDirectory().ParentDirectory();

            TopicLoader.FindProjectRootFolder(folder).ShouldBeNull();
        }
Beispiel #2
0
        public void find_the_project_root_folder_when_you_are_at_the_root()
        {
            var folder =
                ".".ToFullPath().ParentDirectory().ParentDirectory().ParentDirectory().AppendPath("Sample.Docs");

            TopicLoader.FindProjectRootFolder(folder)
            .ShouldEqual(folder);
        }
Beispiel #3
0
        public void find_the_project_root_folder_from_a_child()
        {
            var folder =
                ".".ToFullPath().ParentDirectory().ParentDirectory().ParentDirectory().AppendPath("Sample.Docs");

            TopicLoader.FindProjectRootFolder(folder.AppendPath("colors")).ShouldEqual(folder);
            TopicLoader.FindProjectRootFolder(folder.AppendPath("deep")).ShouldEqual(folder);
            TopicLoader.FindProjectRootFolder(folder.AppendPath("deep", "1.b")).ShouldEqual(folder);
        }