-
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.
Remove unecessary test, run compile test
- Loading branch information
1 parent
f226390
commit cc24176
Showing
2 changed files
with
7 additions
and
7 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 |
---|---|---|
@@ -1,15 +1,15 @@ | ||
using AddisonWesley.Michaelis.EssentialCSharp.Shared.Tests; | ||
|
||
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter04.Listing04_28.Tests; | ||
|
||
[TestClass] | ||
public class ProgramTests | ||
{ | ||
private static readonly string[] ExpectedErrorIds = new string[] { "CS0103" }; | ||
|
||
[TestMethod] | ||
public void MainTest() | ||
public async Task CompileError_OutOfScope() | ||
{ | ||
const string expected = @"Enter the number of players (1 or 2):"; | ||
|
||
IntelliTect.TestTools.Console.ConsoleAssert.Expect( | ||
expected, Program.Main); | ||
await CompilerAssert.CompileAsync($"Listing04.28.OutOfScope.cs", ExpectedErrorIds); | ||
} | ||
} |
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