-
Notifications
You must be signed in to change notification settings - Fork 48
/
Copy pathJsonTestCaseOptions.cs
31 lines (24 loc) · 1.12 KB
/
JsonTestCaseOptions.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
using System;
using System.Collections.Generic;
namespace JsonLD.Infrastructure.Text.Tests
{
internal class JsonTestCaseOptions
{
internal JsonTestCaseOptions(Dictionary<string, object> options)
{
if (options == null) throw new ArgumentNullException(nameof(options));
CompactArrays = options.Optional<bool?>("compactArrays");
Base = options.Optional<string>("base");
ExpandContext = options.Optional<string>("expandContext"); // this is temporary and incorrect
ProduceGeneralizedRdf = options.Optional<bool?>("produceGeneralizedRdf");
UseNativeTypes = options.Optional<bool?>("useNativeTypes");
UseRdfType = options.Optional<bool?>("useRdfType");
}
internal string Base { get; private set; }
internal bool? CompactArrays { get; private set; }
internal string ExpandContext { get; private set; }
internal bool? ProduceGeneralizedRdf { get; private set; }
internal bool? UseNativeTypes { get; private set; }
internal bool? UseRdfType { get; private set; }
}
}