コード例 #1
0
        public void should_not_be_null()
        {
            var blueprint = new EnumBlueprint();

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

            result.ShouldBeOneOf(Gender.F, Gender.M);
        }
コード例 #2
0
        public void should_construct()
        {
            var blueprint = new EnumBlueprint();

            var result = (Gender)blueprint.Construct(new ConstruktionContext(typeof(Gender)),
                                                     new DefaultConstruktionPipeline());

            result.ShouldBeOneOf(Gender.F, Gender.M);
        }