private void Should_create_dictionary <TKey, TValue>(Type collectionType) { var collection = _creator.Create(collectionType); collection.IsValid.Should().Be(true); collection.Value.Should().BeOfType <Dictionary <TKey, TValue> >(); }
private void Should_create_list <T>(Type collectionType) { var collection = _creator.Create(collectionType); collection.IsValid.Should().Be(true); collection.Value.Should().BeOfType <List <T> >(); }