forked from gitextensions/gitextensions
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Request repro steps before submission
Ask a user to provide more information before a report can be submitted. Closes gitextensions#6607
- Loading branch information
Showing
3 changed files
with
66 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using System.Threading; | ||
using FluentAssertions; | ||
using GitUI.NBugReports; | ||
using NUnit.Framework; | ||
|
||
namespace GitUITests.NBugReports | ||
{ | ||
[Apartment(ApartmentState.STA)] | ||
[TestFixture] | ||
public class BugReportFormTests | ||
{ | ||
private BugReportForm _form; | ||
|
||
[SetUp] | ||
public void Setup() | ||
{ | ||
_form = new BugReportForm(); | ||
} | ||
|
||
[TestCase("", false)] | ||
[TestCase("\t\r\n\t\t \r \n \r", false)] | ||
[TestCase("\t\r\n\t\t a \r \n \r", true)] | ||
public void Test(string input, bool expected) | ||
{ | ||
_form.GetTestAccessor().CheckContainsInfo(input).Should().Be(expected); | ||
} | ||
} | ||
} |