示例#1
0
        public void TestStringOfJsonCtr()
        {
            var id        = "http://adlnet.gov/expapi/verbs/experienced";
            var json      = "{\"id\":\"" + id + "\"}";
            var strOfJson = new StringOfJson(json);

            var obj = new Verb(strOfJson);

            Assert.IsInstanceOf <Verb>(obj);
            Assert.That(obj.ToJson(), Is.EqualTo(json));
        }
示例#2
0
        public void TestStringOfJsonCtr()
        {
            var json      = "{\"success\": true, \"completion\": true, \"response\": \"Yes\"}";
            var strOfJson = new StringOfJson(json);

            var obj = new Result(strOfJson);

            Assert.IsInstanceOf <Result>(obj);
            Assert.That(obj.Success, Is.EqualTo(true));
            Assert.That(obj.Completion, Is.EqualTo(true));
            Assert.That(obj.Response, Is.EqualTo("Yes"));
        }
示例#3
0
        public void TestStringOfJsonCtr()
        {
            var mbox = "mailto:[email protected]";

            var json      = "{\"mbox\":\"" + mbox + "\"}";
            var strOfJson = new StringOfJson(json);

            var obj = new Agent(strOfJson);

            Assert.IsInstanceOf <Agent>(obj);
            Assert.That(obj.Mbox, Is.EqualTo(mbox));
        }
示例#4
0
 public Context(StringOfJson json) : this(json.ToJObject())
 {
 }
示例#5
0
 public LanguageMap(StringOfJson json) : this(json.ToJObject())
 {
 }
示例#6
0
 public Group(StringOfJson json) : this(json.ToJObject())
 {
 }
示例#7
0
 protected StatementBase(StringOfJson json) : this(json.ToJObject())
 {
 }
示例#8
0
 public StatementRef(StringOfJson json) : this(json.ToJObject())
 {
 }
 public ContextActivities(StringOfJson json) : this(json.ToJObject())
 {
 }
示例#10
0
 public Verb(StringOfJson json) : this(json.ToJObject())
 {
 }
示例#11
0
 public StatementsResult(StringOfJson json) : this(json.ToJObject())
 {
 }
示例#12
0
 public Score(StringOfJson json) : this(json.ToJObject())
 {
 }
示例#13
0
 public AgentAccount(StringOfJson json) : this(json.ToJObject())
 {
 }
示例#14
0
 public About(StringOfJson json) : this(json.ToJObject())
 {
 }
 public ActivityDefinition(StringOfJson json) : this(json.ToJObject())
 {
 }
示例#16
0
 public Result(StringOfJson json) : this(json.ToJObject())
 {
 }