You've already forked linux-packaging-mono
acceptance-tests
data
debian
docs
eglib
external
Lucene.Net.Light
Newtonsoft.Json
android-libunwind
aspnetwebstack
packages
src
test
Microsoft.TestCommon
Microsoft.Web.Helpers.Test
Properties
AnalyticsTest.cs
BingTest.cs
FacebookTest.cs
FileUploadTest.cs
GamerCardTest.cs
GravatarTest.cs
LinkShareTest.cs
MapsTest.cs
Microsoft.Web.Helpers.Test.csproj
PreAppStartCodeTest.cs
ReCaptchaTest.cs
ThemesTest.cs
TwitterTest.cs
UrlBuilderTest.cs
VideoTest.cs
packages.config
Microsoft.Web.Http.Data.Test
Microsoft.Web.Mvc.Test
Microsoft.Web.WebPages.OAuth.Test
SPA.Test
System.Json.Test.Integration
System.Json.Test.Unit
System.Net.Http.Formatting.Test.Integration
System.Net.Http.Formatting.Test.Unit
System.Web.Helpers.Test
System.Web.Http.Integration.Test
System.Web.Http.SelfHost.Test
System.Web.Http.Test
System.Web.Http.WebHost.Test
System.Web.Mvc.Test
System.Web.Razor.Test
System.Web.WebPages.Administration.Test
System.Web.WebPages.Deployment.Test
System.Web.WebPages.Razor.Test
System.Web.WebPages.Test
WebMatrix.Data.Test
WebMatrix.WebData.Test
Settings.StyleCop
tools
.gitattributes
.gitignore
License.txt
README.md
Runtime.msbuild
Runtime.sln
Runtime.xunit
Settings.StyleCop
build.cmd
binary-reference-assemblies
boringssl
buildtools
cecil
cecil-legacy
debian-snapshot
ikdasm
ikvm
nuget-buildtasks
nunit-lite
rx
ikvm-native
libgc
llvm
m4
man
mcs
mono
msvc
po
runtime
samples
scripts
support
tools
COPYING.LIB
LICENSE
Makefile.am
Makefile.in
NEWS
README.md
acinclude.m4
aclocal.m4
autogen.sh
code_of_conduct.md
compile
config.guess
config.h.in
config.rpath
config.sub
configure.REMOVED.git-id
configure.ac.REMOVED.git-id
depcomp
install-sh
ltmain.sh.REMOVED.git-id
missing
mkinstalldirs
mono-uninstalled.pc.in
test-driver
winconfig.h
34 lines
952 B
C#
34 lines
952 B
C#
![]() |
// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
|
|||
|
|
|||
|
using System.Linq;
|
|||
|
using System.Web.WebPages.Razor;
|
|||
|
using System.Web.WebPages.TestUtils;
|
|||
|
using Xunit;
|
|||
|
|
|||
|
namespace Microsoft.Web.Helpers.Test
|
|||
|
{
|
|||
|
public class PreApplicationStartCodeTest
|
|||
|
{
|
|||
|
[Fact]
|
|||
|
public void StartTest()
|
|||
|
{
|
|||
|
AppDomainUtils.RunInSeparateAppDomain(() =>
|
|||
|
{
|
|||
|
// Act
|
|||
|
AppDomainUtils.SetPreAppStartStage();
|
|||
|
PreApplicationStartCode.Start();
|
|||
|
|
|||
|
// Assert
|
|||
|
var imports = WebPageRazorHost.GetGlobalImports();
|
|||
|
Assert.True(imports.Any(ns => ns.Equals("Microsoft.Web.Helpers")));
|
|||
|
});
|
|||
|
}
|
|||
|
|
|||
|
[Fact]
|
|||
|
public void TestPreAppStartClass()
|
|||
|
{
|
|||
|
PreAppStartTestHelper.TestPreAppStartClass(typeof(PreApplicationStartCode));
|
|||
|
}
|
|||
|
}
|
|||
|
}
|