Skip to content

Commit a4e16d7

Browse files
committed
Switched to use ExpectLike to handle different processors in build Actions
1 parent 50c508d commit a4e16d7

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

src/Chapter23.Tests/Listing23.20.DesignatingABlockForUnsafeCode.Tests.cs

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,15 @@ public class Listing21_20_Tests
99
[TestMethod]
1010
public void GetProcessorIdReturnsCorrectValue()
1111
{
12-
string expected = @"Processor Id: GenuineIntel";
12+
string expected = @"Processor Id: *";
1313
if (!System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
1414
{
1515
expected = "This sample is only valid for Windows";
1616
}
17-
18-
IntelliTect.TestTools.Console.ConsoleAssert.Expect(expected,
19-
() =>
20-
{
21-
Program.Main();
22-
});
17+
IntelliTect.TestTools.Console.ConsoleAssert.ExpectLike(expected,
18+
() =>
19+
{
20+
Program.Main();
21+
});
2322
}
2423
}

0 commit comments

Comments
 (0)