From ffb0973ee7583f06b34699f2dd18505468f38e99 Mon Sep 17 00:00:00 2001 From: eben-roux Date: Sun, 9 Dec 2018 08:12:04 +0200 Subject: [PATCH] - updated fixtures for corrupt message config --- Shuttle.Esb.Tests/ServiceBusSection/ServiceBusSectionFixture.cs | 2 +- Shuttle.Esb.Tests/ServiceBusSection/SharedServiceBusSection.cs | 1 + Shuttle.Esb.Tests/ServiceBusSection/files/Shared-Grouped.config | 1 + Shuttle.Esb.Tests/ServiceBusSection/files/Shared.config | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Shuttle.Esb.Tests/ServiceBusSection/ServiceBusSectionFixture.cs b/Shuttle.Esb.Tests/ServiceBusSection/ServiceBusSectionFixture.cs index 9bb391b3..5fa93ebd 100644 --- a/Shuttle.Esb.Tests/ServiceBusSection/ServiceBusSectionFixture.cs +++ b/Shuttle.Esb.Tests/ServiceBusSection/ServiceBusSectionFixture.cs @@ -10,7 +10,7 @@ protected ServiceBusSection GetServiceBusSection(string file) { return ConfigurationSectionProvider.OpenFile("shuttle", "serviceBus", Path.Combine(AppDomain.CurrentDomain.BaseDirectory, - string.Format(@".\ServiceBusSection\files\{0}", file))); + $@".\ServiceBusSection\files\{file}")); } } } \ No newline at end of file diff --git a/Shuttle.Esb.Tests/ServiceBusSection/SharedServiceBusSection.cs b/Shuttle.Esb.Tests/ServiceBusSection/SharedServiceBusSection.cs index 8c0dd432..f3bb2672 100644 --- a/Shuttle.Esb.Tests/ServiceBusSection/SharedServiceBusSection.cs +++ b/Shuttle.Esb.Tests/ServiceBusSection/SharedServiceBusSection.cs @@ -15,6 +15,7 @@ public void Should_be_able_to_load_shared_configuration(string file) Assert.IsNotNull(section); Assert.IsTrue(section.RemoveMessagesNotHandled); + Assert.IsTrue(section.RemoveCorruptMessages); Assert.AreEqual("GZip", section.CompressionAlgorithm); Assert.AreEqual("3DES", section.EncryptionAlgorithm); } diff --git a/Shuttle.Esb.Tests/ServiceBusSection/files/Shared-Grouped.config b/Shuttle.Esb.Tests/ServiceBusSection/files/Shared-Grouped.config index f86e792f..332b711a 100644 --- a/Shuttle.Esb.Tests/ServiceBusSection/files/Shared-Grouped.config +++ b/Shuttle.Esb.Tests/ServiceBusSection/files/Shared-Grouped.config @@ -10,6 +10,7 @@ diff --git a/Shuttle.Esb.Tests/ServiceBusSection/files/Shared.config b/Shuttle.Esb.Tests/ServiceBusSection/files/Shared.config index 66f32548..0bf1498a 100644 --- a/Shuttle.Esb.Tests/ServiceBusSection/files/Shared.config +++ b/Shuttle.Esb.Tests/ServiceBusSection/files/Shared.config @@ -7,6 +7,7 @@ \ No newline at end of file