diff options
author | Jan Tattermusch <jtattermusch@google.com> | 2018-08-13 14:55:22 +0200 |
---|---|---|
committer | Jan Tattermusch <jtattermusch@google.com> | 2018-08-13 14:55:22 +0200 |
commit | 62901c1631e21657554a17dba9bfee550342edfd (patch) | |
tree | cc9e0622400a36d1d62149f1eab4e2d39eee8fc2 /src | |
parent | 67c2d99189620ea930aba4b8b3cbca18e21bc495 (diff) |
C# sanity test accepts [TestCase] attribute too
Diffstat (limited to 'src')
-rw-r--r-- | src/csharp/Grpc.Core.Tests/SanityTest.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/csharp/Grpc.Core.Tests/SanityTest.cs b/src/csharp/Grpc.Core.Tests/SanityTest.cs index 13c8c0d143..0904453b6e 100644 --- a/src/csharp/Grpc.Core.Tests/SanityTest.cs +++ b/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(); |