UncommonSense.Cinema.Tests.ps1
Describe 'UncommonSense.Cinema' { Context 'Returns movies from Filmhuis Veenendaal' { BeforeAll { $Movies = Get-FilmhuisVeenendaal } It 'Returns movies' { $Movies | Should -Not -HaveCount 0 } It 'All movies have urls' { $Movies | Where-Object { -not $_.Url } | Should -HaveCount 0 } It 'All movies have dates' { $Movies | Where-Object { -not $_.Date } | Should -HaveCount 0 } It 'All movies have titles' { $Movies | Where-Object { -not $_.Title } | Should -HaveCount 0 } It 'All movies have bodies' { $Movies | Where-Object { -not $_.Body } | Should -HaveCount 0 } It 'All movies have genres' { $Movies | Where-Object { -not $_.Genre } | Should -HaveCount 0 } It 'All movies have directors' { $Movies | Where-Object { -not $_.Director } | Should -HaveCount 0 } It 'All movies have leading roles' { $Movies | Where-Object { -not $_.LeadingRoles } | Should -HaveCount 0 } It 'All movies have running times' { $Movies | Where-Object { -not $_.RunningTime } | Should -HaveCount 0 } } } |