public void GenerateValidatesUnsupportedScenariosTest(Type type, string referenceName, bool supported)
{
var target = new IPAddressValueGenerator();
Action action = () => target.Generate(type, referenceName, null);
if (supported)
{
action.ShouldNotThrow();
}
else
{
action.ShouldThrow<NotSupportedException>();
}
}