Stephanevg / PSHTML

Cross platform Powershell module to generate HTML markup language
https://pshtml.readthedocs.io/en/latest/
Other
168 stars 43 forks source link

Issue #201 #251

Closed LxLeChat closed 5 years ago

LxLeChat commented 5 years ago

Pull Request [Topic]

201 Created a pair of function to create DropDownList

Please tell us , the type of Change you are submiting:

Select one of the following:

Does it fix an existing issue? Please tell us which one

Resolves #201

Description of what's been changed

Results of your tests (If applicable)

Executing script C:\Users\Lx\GitPerso\PSHTML\Tests\New-PSHTMLDropDownList.Tests.ps1

  Context Testing New-PSHTMLDropDownList

    Describing Testing passing object to New-PSHTMLDropDownList
      [+] Should contain opening and closing <select> tags 442ms
      [+] Should contain opening and closing <option> tags 52ms
      [+] Option value should match ProcessName 54ms
      [+] Should Not throw if property is correct 70ms
      [+] Should throw if property is not correct 76ms

    Describing Testing Parameter Sets: Items
      [+] New-PSHTMLDropDownList Should Throw if Items ParameterSet is used with Content parameter 201ms
      [+] New-PSHTMLDropDownList Should Throw if Items ParameterSet is used with Value parameter 88ms

    Describing Testing Parameter Sets: Classic
      [+] New-PSHTMLDropDownList Should Throw if Classic ParameterSet is used with Items parameter 269ms
      [+] New-PSHTMLDropDownList Should Throw if Items ParameterSet is used with Property parameter 95ms

  Context Testing New-PSHTMLDropDownListItem

    Describing Testing passing object to New-PSHTMLDropDownListItem
      [+] Should contain opening and closing <option> tags 373ms
      [+] Option value should match ProcessName 52ms
      [+] Should Not throw if property is correct 113ms
      [+] Should throw if property is not correct 97ms

    Describing Testing Parameter Sets: Items
      [+] New-PSHTMLDropDownListItem Should Throw if Items ParameterSet is used with Content parameter 218ms
      [+] New-PSHTMLDropDownList Should Throw if Items ParameterSet is used with Value parameter 80ms

    Describing Testing Parameter Sets: Classic
      [+] New-PSHTMLDropDownListItem Should Throw if Classic ParameterSet is used with Items parameter 202ms
      [+] New-PSHTMLDropDownListItem Should Throw if Items ParameterSet is used with Property parameter 83ms