diff options
author | ncteisen <ncteisen@gmail.com> | 2018-10-19 11:00:29 -0700 |
---|---|---|
committer | ncteisen <ncteisen@gmail.com> | 2018-10-19 11:00:29 -0700 |
commit | 582d80cf8b94c51682fd1dca879ceb3ba2cbac15 (patch) | |
tree | 932828fac597ba7c0c09cdb01781780e97b4acd5 /src/csharp/Grpc.Tools.Tests/NUnitMain.cs | |
parent | 8e666499a97029789cbe3584eba8ffef6d0558eb (diff) | |
parent | 20c848e88d3356195fa70dbb4fe1afee271b735a (diff) |
Merge branch 'master' of https://github.com/grpc/grpc into channelz-uuid-fix
Diffstat (limited to 'src/csharp/Grpc.Tools.Tests/NUnitMain.cs')
-rw-r--r-- | src/csharp/Grpc.Tools.Tests/NUnitMain.cs | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/csharp/Grpc.Tools.Tests/NUnitMain.cs b/src/csharp/Grpc.Tools.Tests/NUnitMain.cs new file mode 100644 index 0000000000..418c33820e --- /dev/null +++ b/src/csharp/Grpc.Tools.Tests/NUnitMain.cs @@ -0,0 +1,33 @@ +#region Copyright notice and license + +// Copyright 2018 gRPC authors. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#endregion + +using System.Reflection; +using NUnitLite; + +namespace Grpc.Tools.Tests +{ + static class NUnitMain + { + public static int Main(string[] args) => +#if NETCOREAPP1_0 || NETCOREAPP1_1 + new AutoRun(typeof(NUnitMain).GetTypeInfo().Assembly).Execute(args); +#else + new AutoRun().Execute(args); +#endif + }; +} |