public void Create_returns_no_specimen_if_type_is_unknown(GrpcAsyncCallSpecimenBuilder sut, SpecimenContext context) { var result = sut.Create(typeof(object), context); Assert.That(result, Is.InstanceOf <NoSpecimen>()); }
public void Create_throws_if_required_dependencies_are_missing(Type type, GrpcAsyncCallSpecimenBuilder sut, IFixture fixture) { fixture.Customizations.Add(sut); Assert.That(() => fixture.Create(type, new SpecimenContext(fixture)), Throws.Exception); }
public void Create_can_create_calls_of_requested_type(Type type, GrpcAsyncCallSpecimenBuilder sut, SpecimenContext context) { var result = sut.Create(type, context); Assert.That(result, Is.InstanceOf(type)); }