From 7f7c573046482b337def6f93176c920cb5661d1c Mon Sep 17 00:00:00 2001 From: "Tristan (HouseCat) Hyams" Date: Tue, 23 Apr 2024 16:41:31 -0500 Subject: [PATCH] Update RabbitServiceTests.cs --- tests/UnitTests/RabbitMQ/RabbitServiceTests.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/UnitTests/RabbitMQ/RabbitServiceTests.cs b/tests/UnitTests/RabbitMQ/RabbitServiceTests.cs index 3951f71..9438db4 100644 --- a/tests/UnitTests/RabbitMQ/RabbitServiceTests.cs +++ b/tests/UnitTests/RabbitMQ/RabbitServiceTests.cs @@ -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); } @@ -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 @@ -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 @@ -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