C# sanity test accepts [TestCase] attribute too

pull/16339/head
Jan Tattermusch 7 years ago
parent e495476b1e
commit ec8a5f2d74
  1. 6
      src/csharp/Grpc.Core.Tests/SanityTest.cs

@ -65,13 +65,13 @@ namespace Grpc.Core.Tests
{
foreach (var m in t.GetMethods())
{
var attributes = m.GetCustomAttributes(typeof(NUnit.Framework.TestAttribute), true);
if (attributes.Length > 0)
var testAttributes = m.GetCustomAttributes(typeof(NUnit.Framework.TestAttribute), true);
var testCaseAttributes = m.GetCustomAttributes(typeof(NUnit.Framework.TestCaseAttribute), true);
if (testAttributes.Length > 0 || testCaseAttributes.Length > 0)
{
testClasses.Add(t.FullName);
break;
}
}
}
testClasses.Sort();

Loading…
Cancel
Save