-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Addressed cross platform new line isses and handled MSTest defect See m…
…icrosoft/vstest#311 - Converted all new lines to use Evironment.NewLine - Used reflection to locate directory of test assembly and then switched that to the current directory due to incorrect starting directory as described at See microsoft/vstest#311
- Loading branch information
1 parent
acff111
commit f61ad94
Showing
10 changed files
with
139 additions
and
603 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
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
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
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
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
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
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,26 @@ | ||
using Microsoft.VisualStudio.TestTools.UnitTesting; | ||
using System; | ||
|
||
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter15.Listing15_12.Tests | ||
{ | ||
|
||
[TestClass] | ||
public class ProgramTests | ||
{ | ||
[TestMethod] | ||
public void SelectingAnonymousTypeFollowingGroupClause() | ||
{ | ||
string expected = $@" | ||
Keywords: | ||
abstract as base bool break byte case catch char checked class const continue decimal default delegate do double else enum event explicit extern false finally fixed float for foreach goto if implicit in int interface internal is lock long namespace new null operator out override object params private protected public readonly ref return sbyte sealed short sizeof stackalloc static string struct switch this throw true try typeof uint ulong unsafe ushort using virtual unchecked void volatile while | ||
Contextual Keywords: | ||
add alias ascending async await by descending dynamic equals from get global group into join let nameof on orderby partial remove select set value var where yield"; | ||
|
||
IntelliTect.TestTools.Console.ConsoleAssert.Expect(expected, | ||
() => | ||
{ | ||
Program.ChapterMain(); | ||
}); | ||
} | ||
} | ||
} |
Oops, something went wrong.