public void TestAcceptsValidArgumentTypes() { object[] arguments = FillArguments(5); bool acceptsArguments = Constructor.AcceptsUserArguments(arguments); Assert.True(acceptsArguments); }
public void TestDoesntAcceptInvalidArgumentTypes() { object[] arguments = FillArgumentsWithOneInvalidType(5); bool acceptsArguments = Constructor.AcceptsUserArguments(arguments); Assert.False(acceptsArguments); }
public void TestAcceptsTooLittleArguments() { object[] arguments = FillArguments(4); SetupParameterCount(5); bool acceptsArguments = Constructor.AcceptsUserArguments(arguments); Assert.True(acceptsArguments); }
public void TestDoesntAcceptTooManyArguments() { object[] arguments = new object[5]; SetupParameterCount(4); bool acceptsArguments = Constructor.AcceptsUserArguments(arguments); Assert.False(acceptsArguments); }