Skip to content

Commit

Permalink
feat: Test Listing 20.7 (#592)
Browse files Browse the repository at this point in the history
Fixes #347
  • Loading branch information
BenjaminMichaelis authored Nov 13, 2023
1 parent 6e10519 commit 2a608f7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 14 deletions.
2 changes: 1 addition & 1 deletion Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@
<PackageVersion Include="System.Linq.Async" Version="6.0.1" />
<PackageVersion Include="System.Reflection" Version="4.3.0" />
</ItemGroup>
</Project>
</Project>
23 changes: 10 additions & 13 deletions src/Chapter20.Tests/Listing20.07.Tests.cs
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
//using System.Threading.Tasks;
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter20.Listing20_07.Tests;

//namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter20.Listing20_07.Tests
//{
// [TestClass]
// public class ProgramTests
// {
// [TestMethod]
// public async Task MainTest()
// {
// await IntelliTect.TestTools.Console.ConsoleAssert.ExpectAsync("<filename>", async () => await AsyncEncryptionCollection.Main());
// }
// }
//}
[TestClass]
public class AsyncEncryptionCollectionTests
{
[TestMethod]
public async Task MainDoesNotThrow()
{
await IntelliTect.TestTools.Console.ConsoleAssert.ExecuteAsync("", async () => await AsyncEncryptionCollection.Main());
}
}

0 comments on commit 2a608f7

Please sign in to comment.