public void CanConvertToAnyValueType() { // Arrange dynamic nullHelper = new DynamicNullableValueObject(); var valueTypes = TypeFinder.GetAllAssemblies() .SelectMany(x => x.GetTypes().Where(type => type.IsPrimitive && !type.IsEnum)) .Distinct(); // Act & Assert foreach (var valueType in valueTypes) { CheckConvertTypeAndAssert(valueType, nullHelper); } }