populate expando seems to
This commit is contained in:
parent
77af5e4f2b
commit
85c58cafc0
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user