Exemple #1
0
    public void ConfigReifier_SetFieldsOnStruct_TemplatedStructCall()
    {
        var s = new ChildStruct();

        s.childIntKey   = 1;
        s.childFloatKey = 1;
        var doc = Config.LoadDocFromString(
            @"---
            childIntKey: 12345
            "
            , "ConfigReifierFacts_ReifyString_TestFilename");

        ConfigReifier.SetFieldsOnStruct(ref s, doc);
        Assert.AreEqual(s.childIntKey, 12345);
        Assert.AreEqual(s.childFloatKey, 1);
    }