Skip to content

Instantly share code, notes, and snippets.

@ArveSystad
Created June 15, 2018 09:13
Show Gist options
  • Save ArveSystad/a9cd486f130bc45e64f67e25a62f5f3d to your computer and use it in GitHub Desktop.
Save ArveSystad/a9cd486f130bc45e64f67e25a62f5f3d to your computer and use it in GitHub Desktop.
Too long parameters in TestFixtures on classes make the R# Test runner window behave weirdly...
using NUnit.Framework;
namespace Reproduce_resharper_error
{
[TestFixture("Some param")]
[TestFixture("Some longer param")]
[TestFixture("Some slightly longer param")]
[TestFixture("1234567890123456789012345678901234567890")] // Add one more char here, and it disappears from the test runner window
[TestFixture("Some really, really, really, really, really, really, really, really long param")]
[TestFixture("Some really, really, really, really, really, really, really, really, really, really, really, really long param")]
public class Tests
{
private readonly string _param;
public Tests(string param)
{
_param = param;
}
[Test]
public void MyTestMethod()
{
Assert.IsNotNull(_param);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment