コード例 #1
0
ファイル: VerbTest.cs プロジェクト: rmabraham/TinCan.NET
        public void TestStringOfJSONCtr()
        {
            String id = "http://adlnet.gov/expapi/verbs/experienced";
            String json = "{\"id\":\"" + id + "\"}";
            StringOfJSON strOfJson = new StringOfJSON(json);

            Verb obj = new Verb(strOfJson);
            Assert.IsInstanceOf<Verb>(obj);
            Assert.That(obj.ToJSON(), Is.EqualTo(json));
        }
コード例 #2
0
ファイル: ResultTest.cs プロジェクト: rmabraham/TinCan.NET
        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
ファイル: AgentTest.cs プロジェクト: rmabraham/TinCan.NET
        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 Activity(StringOfJSON json) : this(json.toJObject()) { }
コード例 #5
0
 public ContextActivities(StringOfJSON json): this(json.toJObject()) {}
コード例 #6
0
ファイル: Statement.cs プロジェクト: prathapkora/TinCan.NET
 public Statement(StringOfJSON json) : this(json.toJObject()) { }
コード例 #7
0
ファイル: Result.cs プロジェクト: prathapkora/TinCan.NET
 public Result(StringOfJSON json): this(json.toJObject()) {}
コード例 #8
0
ファイル: About.cs プロジェクト: rmabraham/TinCan.NET
 public About(StringOfJSON json) : this(json.toJObject()) {}
コード例 #9
0
ファイル: Score.cs プロジェクト: rmabraham/TinCan.NET
 public Score(StringOfJSON json): this(json.toJObject()) {}
コード例 #10
0
ファイル: LanguageMap.cs プロジェクト: rmabraham/TinCan.NET
 public LanguageMap(StringOfJSON json) : this(json.toJObject()) { }
コード例 #11
0
 public ActivityDefinition(StringOfJSON json): this(json.toJObject()) {}
コード例 #12
0
ファイル: Context.cs プロジェクト: rmabraham/TinCan.NET
 public Context(StringOfJSON json): this(json.toJObject()) {}
コード例 #13
0
ファイル: AgentAccount.cs プロジェクト: rmabraham/TinCan.NET
 public AgentAccount(StringOfJSON json) : this(json.toJObject()) { }
コード例 #14
0
ファイル: Group.cs プロジェクト: rmabraham/TinCan.NET
 public Group(StringOfJSON json) : this(json.toJObject()) { }
コード例 #15
0
ファイル: Verb.cs プロジェクト: rmabraham/TinCan.NET
 public Verb(StringOfJSON json): this(json.toJObject()) {}