<commit_before>﻿// Copyright (c) 2014-2015 SIL International
// This software is licensed under the MIT License (http://opensource.org/licenses/MIT)
using System;
using System.Reflection;
using NUnit.Framework;
using Bloom.MiscUI;

namespace BloomTests
{
	[TestFixture]
	[Category("RequiresUI")]
	public class ProblemReporterDialogTests
	{
		class ProblemReporterDialogDouble: ProblemReporterDialog
		{
			public ProblemReporterDialogDouble(): base(null, null)
			{
				Success = true;
				_youTrackProjectKey = "AUT";

				this.Load += (sender, e) =>
				{
					_description.Text = "Created by unit test of " + Assembly.GetAssembly(this.GetType()).FullName;
					_okButton_Click(sender, e);
				};
			}

			public bool Success { get; private set; }

			protected override void UpdateDisplay()
			{
				if (_state == State.Success)
					Close();
			}

			protected override void ChangeState(State state)
			{
				if (state == State.CouldNotAutomaticallySubmit)
				{
					Success = false;
					Close();
				}
				base.ChangeState(state);
			}
		}

		/// <summary>
		/// This is just a smoke-test that will notify us if the SIL JIRA stops working with the API we're relying on.
		/// It sends reports to https://jira.sil.org/browse/AUT
		/// </summary>
		[Test]
		public void CanSubmitToSILJiraAutomatedTestProject()
		{
			using (var dlg = new ProblemReporterDialogDouble())
			{
				dlg.ShowDialog();
				Assert.That(dlg.Success, Is.True, "Automatic submission of issue failed");
			}
		}
	}
}<commit_msg>Disable CanSubmitToSILJiraAutomatedTestProject test on Linux<commit_after>﻿// Copyright (c) 2014-2015 SIL International
// This software is licensed under the MIT License (http://opensource.org/licenses/MIT)
using System;
using System.Reflection;
using NUnit.Framework;
using Bloom.MiscUI;

namespace BloomTests
{
	[TestFixture]
	[Category("RequiresUI")]
	public class ProblemReporterDialogTests
	{
		class ProblemReporterDialogDouble: ProblemReporterDialog
		{
			public ProblemReporterDialogDouble(): base(null, null)
			{
				Success = true;
				_youTrackProjectKey = "AUT";

				this.Load += (sender, e) =>
				{
					_description.Text = "Created by unit test of " + Assembly.GetAssembly(this.GetType()).FullName;
					_okButton_Click(sender, e);
				};
			}

			public bool Success { get; private set; }

			protected override void UpdateDisplay()
			{
				if (_state == State.Success)
					Close();
			}

			protected override void ChangeState(State state)
			{
				if (state == State.CouldNotAutomaticallySubmit)
				{
					Success = false;
					Close();
				}
				base.ChangeState(state);
			}
		}

		/// <summary>
		/// This is just a smoke-test that will notify us if the SIL JIRA stops working with the API we're relying on.
		/// It sends reports to https://jira.sil.org/browse/AUT
		/// </summary>
		[Test]
		[Platform(Exclude = "Linux", Reason = "YouTrackSharp is too Windows-centric")]
		public void CanSubmitToSILJiraAutomatedTestProject()
		{
			using (var dlg = new ProblemReporterDialogDouble())
			{
				dlg.ShowDialog();
				Assert.That(dlg.Success, Is.True, "Automatic submission of issue failed");
			}
		}
	}
}
{'fraction_non_alphanumeric': 0.11401273885350319, 'fraction_numerical': 0.005095541401273885, 'mean_word_length': 3.3564493758668514, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2392129', 'n_tokens_mistral': 1179, 'n_tokens_neox': 956, 'n_words': 259}