Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
<ItemGroup>
<PackageReference Include="GitHubActionsTestLogger" Version="2.4.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
<PackageReference Include="NServiceBus.AcceptanceTesting" Version="9.1.2" />
<PackageReference Include="NUnit" Version="3.14.0" />
<PackageReference Include="NUnit3TestAdapter" Version="4.6.0" />
<PackageReference Include="NServiceBus.AcceptanceTesting" Version="9.2.11" />
<PackageReference Include="NUnit" Version="4.4.0" />
<PackageReference Include="NUnit3TestAdapter" Version="6.1.0" />
</ItemGroup>

</Project>
4 changes: 2 additions & 2 deletions src/AcceptanceTests/When_using_Aes_with_custom.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public async Task Should_receive_decrypted_message()
{
Assert.That(context.Secret, Is.EqualTo(messageToSend.Secret.Value));
Assert.That(context.SubPropertySecret, Is.EqualTo(messageToSend.SubProperty.Secret.Value));
Assert.That(context.CreditCards, Is.EquivalentTo(new List<string>()
Assert.That(context.CreditCards, Is.EquivalentTo(new[]
{
"312312312312312",
"543645546546456"
Expand Down Expand Up @@ -105,4 +105,4 @@ public class MySecretSubProperty
{
public EncryptedString Secret { get; set; }
}
}
}
4 changes: 2 additions & 2 deletions src/AcceptanceTests/When_using_Aes_with_multikey.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public async Task Should_receive_decrypted_message()
.Done(c => c.Done)
.Run();

Assert.AreEqual("betcha can't guess my secret", context.Secret);
Assert.That(context.Secret, Is.EqualTo("betcha can't guess my secret"));
}

public class Context : ScenarioContext
Expand Down Expand Up @@ -85,4 +85,4 @@ public class MessageWithSecretData : IMessage
public EncryptedString Secret { get; set; }
}
}
}
}
4 changes: 2 additions & 2 deletions src/AcceptanceTests/When_using_Aes_with_unobtrusive_mode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public async Task Should_receive_decrypted_message()
{
Assert.That(context.Secret, Is.EqualTo(messageToSend.EncryptedSecret));
Assert.That(context.SubPropertySecret, Is.EqualTo(messageToSend.SubProperty.EncryptedSecret));
Assert.That(context.CreditCards, Is.EquivalentTo(new List<string>
Assert.That(context.CreditCards, Is.EquivalentTo(new[]
{
"312312312312312",
"543645546546456"
Expand Down Expand Up @@ -124,4 +124,4 @@ public class MySecretSubProperty
{
public string EncryptedSecret { get; set; }
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public async Task Should_process_decrypted_message_without_key_identifier()
.Done(c => c.Done)
.Run();

Assert.AreEqual("betcha can't guess my secret", context.Secret);
Assert.That(context.Secret, Is.EqualTo("betcha can't guess my secret"));
}

public class Context : ScenarioContext
Expand Down Expand Up @@ -96,4 +96,4 @@ public Task MutateIncoming(MutateIncomingTransportMessageContext context)
}
}
}
}
}
10 changes: 5 additions & 5 deletions src/AcceptanceTests/When_using_encryption_with_custom_service.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ public async Task Should_receive_decrypted_message()
.Done(c => c.GotTheMessage)
.Run();

Assert.AreEqual("betcha can't guess my secret", context.Secret);
Assert.AreEqual("My sub secret", context.SubPropertySecret);
CollectionAssert.AreEquivalent(new List<string>
Assert.That(context.Secret, Is.EqualTo("betcha can't guess my secret"));
Assert.That(context.SubPropertySecret, Is.EqualTo("My sub secret"));
Assert.That(context.CreditCards, Is.EquivalentTo(new[]
{
"312312312312312",
"543645546546456"
}, context.CreditCards);
}));
}

public class Context : ScenarioContext
Expand Down Expand Up @@ -127,4 +127,4 @@ public string Decrypt(EncryptedValue encryptedValue, IIncomingLogicalMessageCont
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="NServiceBus" Version="9.2.8" />
<PackageReference Include="NServiceBus" Version="9.2.11" />
</ItemGroup>

<ItemGroup>
Expand Down
Loading