public void When_trying_to_get_the_current_assembly_file_version_from_the_assemblyinfo_it_should_return()
        {
            // ----------------------------------------------------------------
            // ARRANGE
            //-----------------------------------------------------------------
            string assemblyInfoFile = AppDomain.CurrentDomain.BaseDirectory + "\\Resources\\AssemblyInfoToReadFrom.txt";
            var parser = new AssemblyInfoReader(assemblyInfoFile);

            // ----------------------------------------------------------------
            // ACT
            //-----------------------------------------------------------------
            string assemblyFileVersion = parser.GetAssemblyFileVersion();

            // ----------------------------------------------------------------
            // ASSERT
            //-----------------------------------------------------------------
            Assert.AreEqual("5.6", assemblyFileVersion);
        }
        private void ModifyAssemblyInformationalVersion(AssemblyInfoWriter writer, AssemblyInfoReader reader)
        {
            Log.LogMessage(MessageImportance.Normal,
                           string.Format("Modifying AssemblyInformationalVersion with pattern: {0}", AssemblyInformationalVersion));

            try
            {
                string newValue = new PatternBasedParser().Replace(reader.GetAssemblyFileVersion(), AssemblyInformationalVersion);

                writer.ModifyAssemblyInformationalVersion(newValue);
            }
            catch (ApplicationException exception)
            {
                Log.LogErrorFromException(exception);
            }
        }