public void BuildSlnAssociatedPathEmptyExtensionTest()
        {
            string associatedPath = @"C:\SolutionFolder\Solution";

            string pathToCheck = NuGenExtensibility.BuildSlnAssociatedPath(_SolutionPath, "");

            Assert.AreEqual(associatedPath, pathToCheck);

            pathToCheck = NuGenExtensibility.BuildSlnAssociatedPath(_SolutionPath, null);
            Assert.AreEqual(associatedPath, pathToCheck);
        }
        public void BuildSlnAssociatedPathTest()
        {
            string associatedPath          = @"C:\SolutionFolder\Solution.ext";
            string associatedFileExtension = "ext";

            string pathToCheck = NuGenExtensibility.BuildSlnAssociatedPath(
                _SolutionPath,
                associatedFileExtension
                );

            Assert.AreEqual(associatedPath, pathToCheck);
        }
Exemple #3
0
        private void _Solution_BeforeClosing()
        {
            string solutionPath = _applicationObject.Solution.FullName;

            if (!string.IsNullOrEmpty(solutionPath))
            {
                Debug.Assert(_taskListUI != null, "_TaskListUI != null");

                if (_taskListUI != null)
                {
                    _taskListUI.Save(
                        NuGenExtensibility.BuildSlnAssociatedPath(
                            solutionPath,
                            Resources.File_Extension
                            )
                        );
                }
            }
        }
Exemple #4
0
        /*
         * LoadTaskList
         */

        private void LoadTaskList()
        {
            string solutionPath = _applicationObject.Solution.FullName;

            if (!string.IsNullOrEmpty(solutionPath))
            {
                string taskListPath = NuGenExtensibility.BuildSlnAssociatedPath(
                    solutionPath,
                    Resources.File_Extension
                    );

                Debug.Assert(_taskListUI != null, "_TaskListUI != null");

                if (_taskListUI != null)
                {
                    _taskListUI.Restore(taskListPath);
                }
            }
        }
 public void BuildSlnAssociatedPathArgumentNullExceptionTest()
 {
     NuGenExtensibility.BuildSlnAssociatedPath(null, "");
 }