public void should_prefix_property_with_name() { var blueprint = new StringBlueprint(); var pi = typeof(Foo).GetProperty(nameof(Foo.Name)); var result = (string)blueprint.Construct(new ConstruktionContext(pi), new DefaultConstruktionPipeline()); result.ShouldStartWith("Name-"); }
public void should_build_string() { var blueprint = new StringBlueprint(); var result = (string)blueprint.Construct(new ConstruktionContext(typeof(string)), Default.Pipeline); result.ShouldStartWith("String-"); }