public void SyncDirectoryWithNamespace_NameSpaceAlreadyUpdated_ShouldNotUpdatePath()
        {
            // Setup
            string projectNamespace       = "PowerTools.Tests";
            string namespaceToCompare     = "PowerTools.Tests.Models.Mappings";
            string defaultNamespaceSuffix = "Mappings";
            string defaultDirectory       = "C:\\Temp\\PowerToolTests";
            string syncDirectoryPath      = "C:\\Temp\\PowerToolTests";

            // Expected
            string expectedPath = "C:\\Temp\\PowerToolTests\\Models\\Mappings";

            ProjectFilesPathGenUtility.SyncDirectoryWithNamespace(
                projectNamespace,
                namespaceToCompare,
                defaultNamespaceSuffix,
                defaultDirectory,
                ref syncDirectoryPath);

            // At second attempt no change should be detected.
            ProjectFilesPathGenUtility.SyncDirectoryWithNamespace(
                projectNamespace,
                namespaceToCompare,
                defaultNamespaceSuffix,
                defaultDirectory,
                ref syncDirectoryPath);

            Assert.Equal(expectedPath, syncDirectoryPath);
        }
        public void SyncDirectoryWithNamespace_NewNestedNameSpaces_UpdatesPathHierarchy()
        {
            // Setup
            string projectNamespace       = "PowerTools.Tests";
            string namespaceToCompare     = "DAL.Models";
            string defaultNamespaceSuffix = "Models";
            string defaultDirectory       = "C:\\Temp\\PowerToolTests";
            string syncDirectoryPath      = "C:\\Temp\\PowerToolTests";

            // Expected
            string expectedPath = "C:\\Temp\\PowerToolTests\\DAL\\Models";

            ProjectFilesPathGenUtility.SyncDirectoryWithNamespace(
                projectNamespace,
                namespaceToCompare,
                defaultNamespaceSuffix,
                defaultDirectory,
                ref syncDirectoryPath);

            Assert.Equal(expectedPath, syncDirectoryPath);
        }
        public void SyncDirectoryWithNamespace_NoChangeInNameSpace_DirectoryShouldNotChange()
        {
            // Setup
            string projectNamespace       = "PowerTools.Tests";
            string namespaceToCompare     = "PowerTools.Tests.Models";
            string defaultNamespaceSuffix = "Models";
            string defaultDirectory       = "C:\\Temp\\PowerToolTests";
            string syncDirectoryPath      = "C:\\Temp\\PowerToolTests";

            // Expected
            string expectedPath = "C:\\Temp\\PowerToolTests\\Models";

            ProjectFilesPathGenUtility.SyncDirectoryWithNamespace(
                projectNamespace,
                namespaceToCompare,
                defaultNamespaceSuffix,
                defaultDirectory,
                ref syncDirectoryPath);

            Assert.Equal(expectedPath, syncDirectoryPath);
        }