ModelBuilder.UnitTests.AgeValueGeneratorTests.GenerateThrowsExceptionWhenReferenceNotAgeTest C# (CSharp) 메소드

GenerateThrowsExceptionWhenReferenceNotAgeTest() 개인적인 메소드

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