-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Uncommented listing and added compilerAssert tests (#543)
## Summary Had to add an extra class that derived from PdaItem. The code now throws the error Fixes #541
- Loading branch information
1 parent
18464a4
commit 03a877d
Showing
2 changed files
with
62 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using AddisonWesley.Michaelis.EssentialCSharp.Shared.Tests; | ||
using Microsoft.VisualStudio.TestTools.UnitTesting; | ||
|
||
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter12.Listing12_41.Tests; | ||
|
||
[TestClass] | ||
public class Listing12 | ||
{ | ||
[TestMethod] | ||
public async Task CannotConvertTypes() | ||
{ | ||
await CompilerAssert.CompileTestTargetFileAsync( | ||
new string[] { "CS0030" }); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters