This repository has been archived by the owner on Dec 14, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Added C# 7 unit and functional test to validate features work end-to-end. #6149
- Loading branch information
1 parent
8ed5510
commit cbebeed
Showing
8 changed files
with
116 additions
and
6 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
19 changes: 19 additions & 0 deletions
19
...soft.AspNetCore.Mvc.FunctionalTests/compiler/resources/BasicWebSite.Home.CSharp7View.html
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,19 @@ | ||
|
||
<p> | ||
<strong>John Doe's</strong> favorite number is | ||
|
||
<em> | ||
(double) 6.02214085774747E+23 </em> | ||
</p> | ||
<p> | ||
<strong>John Smith's</strong> favorite number is | ||
|
||
<em> | ||
(long) 100000000000 </em> | ||
</p> | ||
<p> | ||
<strong>Someone Nice's</strong> favorite number is | ||
|
||
<em> | ||
(decimal) 1.6180339887498948482045868344 </em> | ||
</p> |
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,24 @@ | ||
@model IEnumerable<(string FirstName, string LastName, object FavoriteNumber)> | ||
|
||
@foreach (var person in Model) | ||
{ | ||
<p> | ||
<strong>@person.FirstName @person.LastName's</strong> favorite number is | ||
|
||
<em> | ||
@switch (person.FavoriteNumber) | ||
{ | ||
case double doubleVal: | ||
<text>(double) @doubleVal</text> | ||
break; | ||
case long longVal: | ||
<text>(long) @longVal</text> | ||
break; | ||
case decimal longVal: | ||
<text>(decimal) @longVal</text> | ||
break; | ||
|
||
} | ||
</em> | ||
</p> | ||
} |