示例#1
0
    public void PostDoc_CanReplaceWithReturnValue()
    {
        var           doc      = Configs.ParseString("baseKey: 10", FILENAME);
        PostDocClass3 instance = null;

        Configs.Reify(ref instance, doc);
        Assert.NotNull(instance);
        Assert.AreEqual(instance.baseKey, 99);
    }
示例#2
0
    public void PostDoc_CanReplaceWithReturnValue()
    {
        var           doc = Config.LoadDocFromString("baseKey: 10", c_filename);
        PostDocClass3 tc  = null;

        ConfigReifier.Reify(ref tc, doc);
        Assert.NotNull(tc);
        Assert.AreEqual(tc.baseKey, 99);
    }
示例#3
0
 public static PostDocClass3 PostDoc(PostDocClass3 existing)
 {
     return(new PostDocClass3 {
         baseKey = 99
     });
 }