public void GenerateThrowsExceptionWhenReferenceNotAgeTest(Type type, bool typeSupported, double min, double max) { var target = new AgeValueGenerator(); Action action = () => target.Generate(type, "Stuff", null); action.ShouldThrow<NotSupportedException>(); }