aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/csharp/Grpc.Tools.Tests/Utils.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/csharp/Grpc.Tools.Tests/Utils.cs')
-rw-r--r--src/csharp/Grpc.Tools.Tests/Utils.cs38
1 files changed, 22 insertions, 16 deletions
diff --git a/src/csharp/Grpc.Tools.Tests/Utils.cs b/src/csharp/Grpc.Tools.Tests/Utils.cs
index bb051a4873..6e0f1cffd5 100644
--- a/src/csharp/Grpc.Tools.Tests/Utils.cs
+++ b/src/csharp/Grpc.Tools.Tests/Utils.cs
@@ -20,21 +20,27 @@ using System.Linq;
using Microsoft.Build.Framework;
using Microsoft.Build.Utilities;
-namespace Grpc.Tools.Tests {
- static class Utils {
- // Build an item with a name from args[0] and metadata key-value pairs
- // from the rest of args, interleaved.
- // This does not do any checking, and expects an odd number of args.
- public static ITaskItem MakeItem(params string[] args) {
- var item = new TaskItem(args[0]);
- for (int i = 1; i < args.Length; i += 2)
- item.SetMetadata(args[i], args[i + 1]);
- return item;
- }
+namespace Grpc.Tools.Tests
+{
+ static class Utils
+ {
+ // Build an item with a name from args[0] and metadata key-value pairs
+ // from the rest of args, interleaved.
+ // This does not do any checking, and expects an odd number of args.
+ public static ITaskItem MakeItem(params string[] args)
+ {
+ var item = new TaskItem(args[0]);
+ for (int i = 1; i < args.Length; i += 2)
+ {
+ item.SetMetadata(args[i], args[i + 1]);
+ }
+ return item;
+ }
- // Return an array of items from given itemspecs.
- public static ITaskItem[] MakeSimpleItems(params string[] specs) {
- return specs.Select(s => new TaskItem(s)).ToArray();
- }
- };
+ // Return an array of items from given itemspecs.
+ public static ITaskItem[] MakeSimpleItems(params string[] specs)
+ {
+ return specs.Select(s => new TaskItem(s)).ToArray();
+ }
+ };
}