populate expando seems to

This commit is contained in:
adam 2024-10-30 17:35:00 -04:00
parent 77af5e4f2b
commit 85c58cafc0
2 changed files with 4 additions and 3 deletions

View File

@ -149,6 +149,7 @@ namespace greyn.Deployment
Console.WriteLine($"ostensibly, succeeded? {addTry2}");
break;
default:
Console.WriteLine($"type I don't know how to handle ({memberInfo.MemberType})");
break;
}

View File

@ -350,10 +350,10 @@ public class ConfigTests
{
var actualConfig = parse("{}");
greyn.Deployment.ConfigurationBootstrapper.populateExpando(new AConfigurationType(), ref actualConfig);
var casted = (IDictionary<string, object?>)actualConfig;
dynamic casted = actualConfig;
Console.WriteLine(JsonConvert.SerializeObject(casted, Formatting.Indented));
var subtypeCasted = (IDictionary<string, object?>)casted["subtyped"];
Console.WriteLine(subtypeCasted["aValueTypeButNotAField"]);
Console.WriteLine(casted.subtyped.aValueTypeButNotAField);
Assert.Pass();
}
[Test]