public void should_build_small_enum_key_dictionary() { var blueprint = new DictionaryBlueprint(); var dictionary = (Dictionary <small_genres, string>)blueprint.Construct(new ConstruktionContext(typeof(Dictionary <small_genres, string>)), Default.Pipeline); dictionary.ShouldNotBe(null); dictionary.Count.ShouldBe(2); }
public void should_respect_default_count() { var blueprint = new DictionaryBlueprint(); var dictionary = (Dictionary <int, string>)blueprint.Construct(new ConstruktionContext(typeof(Dictionary <int, string>)), new DefaultConstruktionPipeline()); dictionary.ShouldNotBe(null); dictionary.Count.ShouldBe(3); }
public void should_disregard_preset_and_cover_enum() { var blueprint = new DictionaryBlueprint(); var dictionary = (Dictionary <Genre, string>)blueprint.Construct( new ConstruktionContext(typeof(Dictionary <Genre, string>)), new DefaultConstruktionPipeline()); dictionary.ShouldNotBe(null); dictionary.Count.ShouldBe(5); }