コード例 #1
0
        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-");
        }
コード例 #2
0
        public void should_build_string()
        {
            var blueprint = new StringBlueprint();

            var result = (string)blueprint.Construct(new ConstruktionContext(typeof(string)), Default.Pipeline);

            result.ShouldStartWith("String-");
        }