ModelBuilder.UnitTests.AgeValueGeneratorTests.GenerateThrowsExceptionWhenReferenceNotAgeTest C# (CSharp) Method

GenerateThrowsExceptionWhenReferenceNotAgeTest() private method

private GenerateThrowsExceptionWhenReferenceNotAgeTest ( Type type, bool typeSupported, double min, double max ) : void
type System.Type
typeSupported bool
min double
max double
return void
        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>();
        }