コード例 #1
0
 private void tryToConfigure(CoreSection core)
 {
     try
     {
         StartPaused       = core.StartPaused.Value;
         _watchDirectories = core.WatchDirectories.Value;
         _buildExecutables.AddRange(core.BuildExecutables.Value);
         _nunitTestRunners.AddRange(core.NUnitTestRunner.Value);
         _msTestRunner.AddRange(core.MSTestRunner.Value);
         _xunitTestRunner.AddRange(core.XUnitTestRunner.Value);
         _mspecTestRunner.AddRange(core.MSpecTestRunner.Value);
         _codeEditor                           = core.CodeEditor.Value;
         _debuggingEnabled                     = core.DebuggingEnabled.Value;
         GrowlNotify                           = core.GrowlNotify.Value;
         NotifyOnRunStarted                    = core.NotifyOnRunStarted.Value;
         NotifyOnRunCompleted                  = core.NotifyOnRunCompleted.Value;
         TestAssembliesToIgnore                = core.TestAssembliesToIgnore.Value;
         TestCategoriesToIgnore                = core.TestCategoriesToIgnore.Value;
         _ignoreFile                           = core.WatchIgnoreFile.Value;
         FileChangeBatchDelay                  = core.FileChangeBatchDelay.Value;
         CustomOutputPath                      = core.CustomOutputPath.Value;
         RerunFailedTestsFirst                 = core.RerunFailedTestsFirst.Value;
         WhenWatchingSolutionBuildSolution     = core.WhenWatchingSolutionBuildSolution.Value;
         UseAutoTestTestRunner                 = core.UseAutoTestTestRunner.Value;
         UseLowestCommonDenominatorAsWatchPath = core.UseLowestCommonDenominatorAsWatchPath.Value;
         WatchAllFiles                         = core.WatchAllFiles.Value;
         _keys = core.Keys;
     }
     catch (Exception ex)
     {
         DebugLog.Debug.FailedToConfigure(ex);
         throw;
     }
 }
コード例 #2
0
		public void Should_read_merge_from_node()
		{
			var section = new CoreSection();
			section.Read(_file);
			section.WatchDirectories.ShouldMerge.ShouldBeTrue();
			section.WatchDirectories.ShouldExclude.ShouldBeFalse();
		}
コード例 #3
0
ファイル: Config.cs プロジェクト: evgenyb/AutoTest.Net
		private CoreSection getConfiguration()
		{
			var core = new CoreSection();
			var configFile = Path.Combine(PathParsing.GetRootDirectory(), "AutoTest.config");
			if (!File.Exists(configFile))
			{
				Debug.ConfigurationFileMissing();
				return core;
			}
			core.Read(configFile);
			return core;
		}
コード例 #4
0
        private CoreSection getConfiguration(string configFile)
        {
            var core = new CoreSection();

            if (!File.Exists(configFile))
            {
                Debug.ConfigurationFileMissing();
                return(core);
            }
            core.Read(configFile);
            return(core);
        }
コード例 #5
0
ファイル: Config.cs プロジェクト: evgenyb/AutoTest.Net
 private void tryToConfigure(CoreSection core)
 {
     try
     {
         _watchDirectories = core.WatchDirectories.ToArray();
         _buildExecutables = core.BuildExecutables;
         _nunitTestRunners = core.NUnitTestRunner;
         _msTestRunner = core.MSTestRunner;
         _xunitTestRunner = core.XUnitTestRunner;
         _codeEditor = core.CodeEditor;
         _debuggingEnabled = core.DebuggingEnabled;
     }
     catch (Exception ex)
     {
         DebugLog.Debug.FailedToConfigure(ex);
         throw;
     }
 }
コード例 #6
0
ファイル: Config.cs プロジェクト: nieve/AutoTest.Net
        private void tryToConfigure(CoreSection core)
        {
            try
            {
                _watchDirectories = core.WatchDirectories.ToArray();
                _buildExecutables = core.BuildExecutables;
                _nunitTestRunners = core.NUnitTestRunner;
                _msTestRunner = core.MSTestRunner;
                _xunitTestRunner = core.XUnitTestRunner;
                _codeEditor = core.CodeEditor;
                _debuggingEnabled = core.DebuggingEnabled;
				GrowlNotify = core.GrowlNotify;
				NotifyOnRunStarted = core.NotifyOnRunStarted;
				NotifyOnRunCompleted = core.NotifyOnRunCompleted;
				_ignoreFile = core.WatchIgnoreFile;
            }
            catch (Exception ex)
            {
                DebugLog.Debug.FailedToConfigure(ex);
                throw;
            }
        }
コード例 #7
0
ファイル: Config.cs プロジェクト: jstclair/AutoTest.Net
		private CoreSection getConfiguration(string configFile)
		{
			var core = new CoreSection();
			if (!File.Exists(configFile))
			{
				Debug.ConfigurationFileMissing();
				return core;
			}
			core.Read(configFile);
			return core;
		}
コード例 #8
0
		public void Should_read_from_first_node_only()
		{
			var section = new CoreSection();
			section.Read(_file);
			section.WatchDirectories.ShouldExclude.ShouldBeFalse();
		}
コード例 #9
0
ファイル: Config.cs プロジェクト: forki/AutoTest.Net
		private void tryToConfigure(CoreSection core)
        {
            try
            {
                StartPaused = core.StartPaused.Value;
                _watchDirectories = core.WatchDirectories.Value;
                _buildExecutables.AddRange(core.BuildExecutables.Value);
                _nunitTestRunners.AddRange(core.NUnitTestRunner.Value);
                _msTestRunner.AddRange(core.MSTestRunner.Value);
                _xunitTestRunner.AddRange(core.XUnitTestRunner.Value);
                _mspecTestRunner.AddRange(core.MSpecTestRunner.Value);
                _codeEditor = core.CodeEditor.Value;
                _debuggingEnabled = core.DebuggingEnabled.Value;
                MSBuildAdditionalParameters = core.MSBuildAdditionalParameters.Value;
                MSBuildParallelBuildCount = core.MSBuildParallelBuildCount.Value;
				GrowlNotify = core.GrowlNotify.Value;
				NotifyOnRunStarted = core.NotifyOnRunStarted.Value;
				NotifyOnRunCompleted = core.NotifyOnRunCompleted.Value;
				TestAssembliesToIgnore = core.TestAssembliesToIgnore.Value;
				TestCategoriesToIgnore = core.TestCategoriesToIgnore.Value;
				_ignoreFile = core.WatchIgnoreFile.Value;
				FileChangeBatchDelay = core.FileChangeBatchDelay.Value;
				CustomOutputPath = core.CustomOutputPath.Value;
				RerunFailedTestsFirst = core.RerunFailedTestsFirst.Value;
                WhenWatchingSolutionBuildSolution = core.WhenWatchingSolutionBuildSolution.Value;
                UseAutoTestTestRunner = core.UseAutoTestTestRunner.Value;
                UseLowestCommonDenominatorAsWatchPath = core.UseLowestCommonDenominatorAsWatchPath.Value;
                WatchAllFiles = core.WatchAllFiles.Value;
                RunAssembliesInParallel = core.RunAssembliesInParallel.Value;
                TestRunnerCompatibilityMode = core.TestRunnerCompatibilityMode.Value;
                LogRecycleSize = core.LogRecycleSize.Value;
                ProjectsToIgnore = core.ProjectsToIgnore.Value;
                _keys = core.Keys;
            }
            catch (Exception ex)
            {
                DebugLog.Debug.FailedToConfigure(ex);
                throw;
            }
        }
コード例 #10
0
ファイル: Config.cs プロジェクト: jstclair/AutoTest.Net
        private void tryToConfigure(CoreSection core)
        {
            try
            {
                _watchDirectories = core.WatchDirectories.Value;
                _buildExecutables.AddRange(core.BuildExecutables.Value);
                _nunitTestRunners.AddRange(core.NUnitTestRunner.Value);
                _msTestRunner.AddRange(core.MSTestRunner.Value);
                _xunitTestRunner.AddRange(core.XUnitTestRunner.Value);
                _codeEditor = core.CodeEditor.Value;
                _debuggingEnabled = core.DebuggingEnabled.Value;
				GrowlNotify = core.GrowlNotify.Value;
				NotifyOnRunStarted = core.NotifyOnRunStarted.Value;
				NotifyOnRunCompleted = core.NotifyOnRunCompleted.Value;
				TestAssembliesToIgnore = core.TestAssembliesToIgnore.Value;
				TestCategoriesToIgnore = core.TestCategoriesToIgnore.Value;
				_ignoreFile = core.WatchIgnoreFile.Value;
				FileChangeBatchDelay = core.FileChangeBatchDelay.Value;
            }
            catch (Exception ex)
            {
                DebugLog.Debug.FailedToConfigure(ex);
                throw;
            }
        }
コード例 #11
0
		public void Should_read_from_boolean_nodes()
		{
			var section = new CoreSection();
			section.Read(_file);
			section.DebuggingEnabled.ShouldExclude.ShouldBeTrue();
		}
コード例 #12
0
		public void Should_read_from_value_item_nodes()
		{
			var section = new CoreSection();
			section.Read(_file);
			section.WatchIgnoreFile.ShouldExclude.ShouldBeTrue();
		}
コード例 #13
0
		public void Should_set_not_read_from_file_if_found()
		{
			var section = new CoreSection();
			section.Read(_file);
			section.NUnitTestRunner.WasReadFromConfig.ShouldBeTrue();
		}
コード例 #14
0
		public void Should_read_exclude_from_node()
		{
			var section = new CoreSection();
			section.Read(_file);
			section.BuildExecutables.ShouldExclude.ShouldBeTrue();
		}
コード例 #15
0
		public void Should_not_be_able_to_merge_code_editor()
		{
			var section = new CoreSection();
			section.Read(_file);
			section.CodeEditor.ShouldMerge.ShouldBeFalse();
		}
コード例 #16
0
		public void Should_not_allow_merge_for_growl()
		{
			var section = new CoreSection();
			section.Read(_file);
			section.GrowlNotify.ShouldMerge.ShouldBeFalse();
		}
コード例 #17
0
		public void Should_ignore_invalid_configurations()
		{
			if (File.Exists(_file))
				File.Delete(_file);
			File.WriteAllText(_file, "");
			var section = new CoreSection();
			section.Read(_file);
		}