public void GetFolderOfUniqueName_OwnProject_ReturnFolder()
        {
            var projectRenamer = new FakeProjectRenamer();
            var folderName     = projectRenamer.GetFolderOfUniqueName(@"TestProjectA\TestProjectA.csproj");

            Assert.AreEqual("TestProjectA", folderName);
        }
        public void GetFolderOfUniqueName_AddedExistingProjectFromDesktop_ReturnFolder()
        {
            var projectRenamer = new FakeProjectRenamer();
            var folderName     = projectRenamer.GetFolderOfUniqueName(@"..\..\Desktop\Folder1\Folder2\TestProjectA\TestProjectA.csproj");

            Assert.AreEqual("TestProjectA", folderName);
        }
        public void ProjectUniqueName_DifferentNames_ReturnFolderAndFileName(string projectUniqueName)
        {
            var projectRenamer = new FakeProjectRenamer()
            {
                ProjectUniqueName = projectUniqueName
            };

            Assert.AreEqual(@"TestProjectA\TestProjectA.csproj", projectRenamer.ProjectUniqueName);
        }
        public void ProjectUniqueNameNew_DifferentNames_ReturnNewUniqueName(string projectUniqueName)
        {
            var projectRenamer = new FakeProjectRenamer()
            {
                ProjectName       = "TestProjectA",
                ProjectNameNew    = "TestProjectA_NewName",
                ProjectUniqueName = projectUniqueName
            };

            Assert.AreEqual(@"TestProjectA_NewName\TestProjectA_NewName.csproj", projectRenamer.ProjectUniqueNameNew);
        }
        public string ProjectFullNameNew_DifferentNames_ReturnNewFullName(string projectFullName)
        {
            var projectRenamer = new FakeProjectRenamer()
            {
                ProjectName       = "TestProjectA",
                ProjectNameNew    = "TestProjectA_NewName",
                ProjectUniqueName = @"TestProjectA\TestProjectA.csproj",
                ProjectFullName   = projectFullName
            };

            return(projectRenamer.ProjectFullNameNew);
        }