I'm trying to read raw JSON text as an option value, but no luck finding an effective way
For example:
[Theory]
[InlineData(@"--raw {""Id"":1,""Name"":""Test""}")]
[InlineData(@"--raw {""""Id"""":1,""""Name"""":""""Test""""}")]
[InlineData(@"--raw '{""Id"":1,""Name"":""Test""}'")]
public void SplitTest(string commandLine)
{
var args = CommandLineStringSplitter.Instance.Split(commandLine).ToArray();
Assert.Equal(2, args.Length);
Assert.Equal("--raw", args[0]);
Assert.Equal(@"{""Id"":1,""Name"":""Test""}", args[1]);
}
All the cases failed, is there a simple way to read raw json text
I'm trying to read raw JSON text as an option value, but no luck finding an effective way
For example:
All the cases failed, is there a simple way to read raw json text