locked
System.EntryPointNotFoundException: Entry point was not found. when unit testing html helpers RRS feed

  • Question

  • I'm not sure which forum I should use for this but I get a EntryPointNotFoundException when trying to unit test a custom html helper:

    public static string AdditionalUsersDropDownList( this HtmlHelper helper, int additionalUsers )
    
    		{
    
    			Dictionary<int, string> items = new Dictionary<int, string>( );
    
    			items.Add( 0, "None" );
    
    
    
    			for ( int i = 1; i <= 30; i++ )
    
    			{
    
    				items.Add( i, i.ToString( ) );
    
    			}
    
    
    
    			SelectList list =  new SelectList( items, "Key", "Value", additionalUsers );
    
    			return helper.DropDownList( "AdditionalUsers", list );
    
    		}

    Sunday, October 11, 2009 2:50 AM

Answers

All replies