public void AddAnswerToAnAnswerSheet() { AnswerSheet s = SetupSheet(); QBinary q = s.Form.Questions.AddANewQuestion <QBinary>("Est-ce que c'est bon ?", true); ABase a = s.CreateAnswerFor(q); Assert.IsNotNull(a); Assert.IsInstanceOf(typeof(ABinary), a); ABinary b = (ABinary)a; b.Answer = true; }
private string SetupBinary(string path) { AnswerSheet s = SetupSheet(); QBinary q1 = s.Form.Questions.AddANewQuestion <QBinary>("Test 1", true); QBinary q2 = s.Form.Questions.AddANewQuestion <QBinary>("Test 2", true); ABinary a1 = (ABinary)s.CreateAnswerFor(q1); a1.Answer = true; ABinary a2 = (ABinary)s.CreateAnswerFor(q2); a1.Answer = false; return(FormEngine.Save(path, s.Form)); }