Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
gpduck committed Jul 16, 2015
1 parent 75bd64e commit e9a0ffd
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Tests/ConvertFrom-RabbitMqDelivery.Tests.ps1
Expand Up @@ -11,19 +11,19 @@ Describe "ConvertFrom-RabbitMQDelivery" {
$Properties = New-Object RabbitMQ.Client.Framing.BasicProperties
$Delivery.BasicProperties = $Properties

It "returns the plain text with no ContentType" {
It "returns the plain text with no ContentType" {
$Delivery.BasicProperties.ClearContentType()
ConvertFrom-RabbitMQDelivery -Delivery $Delivery | Should Be "test string"
}
}

It "returns the plain text with ContentType = text/plain" {
It "returns the plain text with ContentType = text/plain" {
$Delivery.BasicProperties.ContentType = "text/plain"
ConvertFrom-RabbitMQDelivery -Delivery $Delivery | Should Be "test string"
}
}
}

context "CliXML Delivery" {
It "returns the object with ContentType = application/clixml+xml" {
It "returns the object with ContentType = application/clixml+xml" {
$Delivery = New-Object RabbitMQ.Client.Events.BasicDeliverEventArgs
$TestObject = [PSCustomObject]@{
P1 = "Property 1"
Expand All @@ -40,7 +40,7 @@ Describe "ConvertFrom-RabbitMQDelivery" {
$ParsedObject.P1 | Should Be "Property 1"
$ParsedObject.P2 | Should Be "Property 2"
($ParsedObject | Get-Member -MemberType Properties).Count | Should Be 2
}
}

It "returns an ArrayList when an array is passed in" {
$Delivery = New-Object RabbitMQ.Client.Events.BasicDeliverEventArgs
Expand Down Expand Up @@ -75,12 +75,12 @@ Describe "ConvertFrom-RabbitMQDelivery" {
$Properties = New-Object RabbitMQ.Client.Framing.BasicProperties
$Delivery.BasicProperties = $Properties

It "returns the object with ContentType = application/json" {
It "returns the object with ContentType = application/json" {
$Delivery.BasicProperties.ContentType = "application/json"
$ParsedObject = ConvertFrom-RabbitMQDelivery -Delivery $Delivery
$ParsedObject.P1 | Should Be "Property 1"
$ParsedObject.P2 | Should Be "Property 2"
($ParsedObject | Get-Member -MemberType Properties).Count | Should Be 2
}
}
}
}

0 comments on commit e9a0ffd

Please sign in to comment.