Avoid use of AssemblyQualifiedName in tests
The type name generated by Razor is an implementation detail and shouldn't be used in tests outside of the Razor repo. Testing that the assembly name is correct should be enough to validate what we need for these tests.
This commit is contained in:
parent
c3dedd9feb
commit
d686acad87
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<body>
|
||||
AspNetCore._Areas_Manage_Views_Shared__Layout_cshtml, ClassLibraryWithPrecompiledViews.PrecompiledViews, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
ClassLibraryWithPrecompiledViews.PrecompiledViews, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
|
||||
<h1>Admin home page</h1>
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
<html>
|
||||
<body>
|
||||
|
||||
AspNetCore._Views_Home_Index_cshtml, ApplicationUsingRelativePaths.PrecompiledViews, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
ApplicationUsingRelativePaths.PrecompiledViews, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
Hello from Index!
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
<html>
|
||||
<body>
|
||||
|
||||
AspNetCore._Views_Home_Index_cshtml, ApplicationUsingRelativePaths.PrecompiledViews, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
ApplicationUsingRelativePaths.PrecompiledViews, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
Hello from Index!
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,2 +1,2 @@
|
|||
AspNetCore._Views_Home_Index_cshtml, ApplicationWithConfigureMvc.PrecompiledViews, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
ApplicationWithConfigureMvc.PrecompiledViews, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
<br />Hello world!
|
||||
|
|
@ -8,7 +8,7 @@
|
|||
<body>
|
||||
<div class="container body-content">
|
||||
|
||||
AspNetCore._Views_Home_ClassLibraryTagHelper_cshtml, ApplicationWithTagHelpers.PrecompiledViews, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
ApplicationWithTagHelpers.PrecompiledViews, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
<div><b>To boldy tag that no one has ever tagged before...</b></div>
|
||||
|
||||
|
||||
|
|
@ -20,6 +20,6 @@ AspNetCore._Views_Home_ClassLibraryTagHelper_cshtml, ApplicationWithTagHelpers.P
|
|||
</footer>
|
||||
</div>
|
||||
|
||||
AspNetCore._Views_Shared__Layout_cshtml, ApplicationWithTagHelpers.PrecompiledViews, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
ApplicationWithTagHelpers.PrecompiledViews, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
<body>
|
||||
<div class="container body-content">
|
||||
|
||||
AspNetCore._Views_Home_LocalTagHelper_cshtml, ApplicationWithTagHelpers.PrecompiledViews, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
ApplicationWithTagHelpers.PrecompiledViews, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
<test href="/Home/About">TestTagHelper content.</test>
|
||||
|
||||
|
||||
|
|
@ -20,6 +20,6 @@ AspNetCore._Views_Home_LocalTagHelper_cshtml, ApplicationWithTagHelpers.Precompi
|
|||
</footer>
|
||||
</div>
|
||||
|
||||
AspNetCore._Views_Shared__Layout_cshtml, ApplicationWithTagHelpers.PrecompiledViews, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
ApplicationWithTagHelpers.PrecompiledViews, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@
|
|||
</div>
|
||||
<div class="container body-content">
|
||||
|
||||
AspNetCore._Views_Home_Index_cshtml, SimpleApp.PrecompiledViews, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
SimpleApp.PrecompiledViews, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
<div id="myCarousel" class="carousel slide" data-ride="carousel" data-interval="6000">
|
||||
<ol class="carousel-indicators">
|
||||
<li data-target="#myCarousel" data-slide-to="0" class="active"></li>
|
||||
|
|
@ -160,6 +160,6 @@ AspNetCore._Views_Home_Index_cshtml, SimpleApp.PrecompiledViews, Version=1.0.0.0
|
|||
|
||||
|
||||
|
||||
AspNetCore._Views_Shared__Layout_cshtml, SimpleApp.PrecompiledViews, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
SimpleApp.PrecompiledViews, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
|
||||
AspNetCore._Views_Home_Index_cshtml, NewAssemblyName.PrecompiledViews, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
NewAssemblyName.PrecompiledViews, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
|
|
@ -1 +1 @@
|
|||
Hello from view in AspNetCore._Views_Home_Index_cshtml, StrongNamedApp.PrecompiledViews, Version=1.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60
|
||||
Hello from view in StrongNamedApp.PrecompiledViews, Version=1.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60
|
||||
|
|
|
|||
|
|
@ -2,5 +2,5 @@
|
|||
ViewData["Title"] = "Home Page";
|
||||
}
|
||||
|
||||
@GetType().AssemblyQualifiedName
|
||||
@GetType().Assembly.FullName
|
||||
Hello from Index!
|
||||
|
|
@ -1,2 +1,2 @@
|
|||
@GetType().AssemblyQualifiedName
|
||||
@GetType().Assembly.FullName
|
||||
Hello world!
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
@addTagHelper *, ClassLibraryTagHelper
|
||||
|
||||
@GetType().AssemblyQualifiedName
|
||||
@GetType().Assembly.FullName
|
||||
<div bold="bold">To boldy tag that no one has ever tagged before...</div>
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
@addTagHelper *, ApplicationWithTagHelpers
|
||||
|
||||
@GetType().AssemblyQualifiedName
|
||||
@GetType().Assembly.FullName
|
||||
<test controller="Home" action="About"></test>
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -16,6 +16,6 @@
|
|||
</footer>
|
||||
</div>
|
||||
@RenderSection("scripts", required: false)
|
||||
@GetType().AssemblyQualifiedName
|
||||
@GetType().Assembly.FullName
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<body>
|
||||
@GetType().AssemblyQualifiedName
|
||||
@GetType().Assembly.FullName
|
||||
@RenderBody()
|
||||
@RenderSection("TestSection")
|
||||
</body>
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
ViewData["Title"] = "Home Page";
|
||||
}
|
||||
|
||||
@GetType().AssemblyQualifiedName
|
||||
@GetType().Assembly.FullName
|
||||
<div id="myCarousel" class="carousel slide" data-ride="carousel" data-interval="6000">
|
||||
<ol class="carousel-indicators">
|
||||
<li data-target="#myCarousel" data-slide-to="0" class="active"></li>
|
||||
|
|
|
|||
|
|
@ -63,6 +63,6 @@
|
|||
</environment>
|
||||
|
||||
@RenderSection("scripts", required: false)
|
||||
@GetType().AssemblyQualifiedName
|
||||
@GetType().Assembly.FullName
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -2,4 +2,4 @@
|
|||
ViewData["Title"] = "Home Page";
|
||||
}
|
||||
|
||||
@GetType().AssemblyQualifiedName
|
||||
@GetType().Assembly.FullName
|
||||
|
|
@ -1 +1 @@
|
|||
Hello from view in @GetType().AssemblyQualifiedName
|
||||
Hello from view in @GetType().Assembly.FullName
|
||||
|
|
|
|||
Loading…
Reference in New Issue