Skip to content

Commit

Permalink
Update RabbitServiceTests.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
houseofcat committed Apr 23, 2024
1 parent ebe3dd3 commit 7f7c573
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/UnitTests/RabbitMQ/RabbitServiceTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ public async Task ComcryptTestAsync()
// Assert
Assert.True(message.Metadata.Encrypted());
Assert.True(message.Metadata.Compressed());
Assert.Equal(message.Metadata.EncryptionType(), _rabbitService.EncryptionProvider.Type);
Assert.Equal(message.Metadata.CompressionType(), _rabbitService.CompressionProvider.Type);
Assert.Equal(_rabbitService.EncryptionProvider.Type, message.Metadata.EncryptionType());
Assert.Equal(_rabbitService.CompressionProvider.Type, message.Metadata.CompressionType());
Assert.NotEqual(messageAsString, bodyAsString);
}

Expand Down Expand Up @@ -88,8 +88,8 @@ public async Task ComcryptDecomcryptTestAsync()
// Assert
Assert.True(message.Metadata.Encrypted());
Assert.True(message.Metadata.Compressed());
Assert.Equal(message.Metadata.EncryptionType(), _rabbitService.EncryptionProvider.Type);
Assert.Equal(message.Metadata.CompressionType(), _rabbitService.CompressionProvider.Type);
Assert.Equal(_rabbitService.EncryptionProvider.Type, message.Metadata.EncryptionType());
Assert.Equal(_rabbitService.CompressionProvider.Type, message.Metadata.CompressionType());
Assert.NotEqual(messageAsString, bodyAsString);

// Re-Act
Expand All @@ -115,7 +115,7 @@ public void EncryptDecryptTest()

// Assert
Assert.True(message.Metadata.Encrypted());
Assert.Equal(message.Metadata.EncryptionType(), _rabbitService.EncryptionProvider.Type);
Assert.Equal(_rabbitService.EncryptionProvider.Type, message.Metadata.EncryptionType());
Assert.NotEqual(messageAsString, bodyAsString);

// Re-Act
Expand All @@ -140,7 +140,7 @@ public async Task CompressDecompressTestAsync()

// Assert
Assert.True(message.Metadata.Compressed());
Assert.Equal(message.Metadata.CompressionType(), _rabbitService.CompressionProvider.Type);
Assert.Equal(_rabbitService.CompressionProvider.Type, message.Metadata.CompressionType());
Assert.NotEqual(messageAsString, bodyAsString);

// Re-Act
Expand Down

0 comments on commit 7f7c573

Please sign in to comment.