Esempio n. 1
0
    public void PostDoc_IsNull()
    {
        var           doc = Config.LoadDocFromString("baseKey: 10", c_filename);
        PostDocClass2 tc  = null;

        ConfigReifier.Reify(ref tc, doc);
        Assert.AreEqual(tc.baseKey, 10);
    }
Esempio n. 2
0
    public void PostDoc_DoesntExist()
    {
        var           doc      = Configs.ParseString("baseKey: 10", FILENAME);
        PostDocClass2 instance = null;

        Configs.Reify(ref instance, doc);
        Assert.NotNull(instance);
        Assert.AreEqual(instance.baseKey, 10);
    }