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); }
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); }
public static PostDocClass3 PostDoc(PostDocClass3 existing) { return(new PostDocClass3 { baseKey = 99 }); }