Esempio n. 1
0
    public void TestOneTutorialOneStepNoContent()
    {
        var modelMiddleware = TutorialManagerModelMiddleware.GetInstance();

        modelMiddleware.Clear();

        modelMiddleware.CreateTutorialEntity(tutorialName1);
        modelMiddleware.CreateStepEntity(t1step1, tutorialName1);
        modelMiddleware.SaveGenre("Adventure");

        string output = TMModelToJsonInterpreter.ProcessModelToJson(modelMiddleware.TMData);

        Assert.That(output, Is.EqualTo(expectedT1S1C0));
    }
Esempio n. 2
0
    public void TestTwoTutorialsOneStepEachPlusContent()
    {
        var modelMiddleware = TutorialManagerModelMiddleware.GetInstance();

        modelMiddleware.Clear();

        modelMiddleware.CreateTutorialEntity(tutorialName1);
        modelMiddleware.CreateStepEntity(t1step1, tutorialName1);
        modelMiddleware.CreateContentEntity(t1Step1LookupID, ContentType.text, t1step1Text);

        modelMiddleware.CreateTutorialEntity(tutorialName2);
        modelMiddleware.CreateStepEntity(t2step1, tutorialName2);
        modelMiddleware.CreateContentEntity(t2Step1LookupID, ContentType.text, t2step1Text);
        modelMiddleware.SaveGenre("Adventure");

        string output = TMModelToJsonInterpreter.ProcessModelToJson(modelMiddleware.TMData);

        Assert.That(output, Is.EqualTo(expectedT2S1C1));
    }