Imported Upstream version 3.6.0

Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
This commit is contained in:
Jo Shields
2014-08-13 10:39:27 +01:00
commit a575963da9
50588 changed files with 8155799 additions and 0 deletions

View File

@ -0,0 +1,31 @@
TESTNUM=05
thisdir = class/System.Web/Test/standalone/EnableFormsAuthentication/Test_$(TESTNUM)
include ../../../../../../build/rules.make
APPLICATION_ASSEMBLY = bin/EnableFormsAuthentication_Test_$(TESTNUM).dll
APPLICATION_ASSEMBLY_SOURCES = \
Properties/AssemblyInfo.cs \
Tests/PreStart.cs
APPLICATION_ASSEMBLY_MCS_FLAGS = \
-debug:full \
-r:System.Web.dll
VALID_PROFILE := $(filter 4.0, $(FRAMEWORK_VERSION))
ifndef VALID_PROFILE
all:
else
all: $(APPLICATION_ASSEMBLY)
$(APPLICATION_ASSEMBLY): bin/.stamp $(APPLICATION_ASSEMBLY_SOURCES)
$(CSCOMPILE) $(APPLICATION_ASSEMBLY_MCS_FLAGS) $(APPLICATION_ASSEMBLY_SOURCES) -target:library -out:$(APPLICATION_ASSEMBLY)
bin/.stamp:
install -d -m 755 bin/
touch bin/.stamp
endif
clean:
rm -rf bin/

View File

@ -0,0 +1,38 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Web;
[assembly: PreApplicationStartMethod (typeof (Test_05.Tests.PreStart), "FormsAuthenticationSetUp")]
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle ("Test_05")]
[assembly: AssemblyDescription ("")]
[assembly: AssemblyConfiguration ("")]
[assembly: AssemblyCompany ("")]
[assembly: AssemblyProduct ("Test_05")]
[assembly: AssemblyCopyright ("Copyright © 2010")]
[assembly: AssemblyTrademark ("")]
[assembly: AssemblyCulture ("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible (false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid ("3ac444a6-3f13-4f78-812f-9bf45754e0a8")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion ("1.0.0.0")]
[assembly: AssemblyFileVersion ("1.0.0.0")]

View File

@ -0,0 +1,20 @@
using System;
using System.Web;
using System.Web.Security;
using System.Collections.Specialized;
namespace Test_05.Tests
{
public class PreStart
{
public static void FormsAuthenticationSetUp ()
{
var nvc = new NameValueCollection ();
nvc.Add ("loginUrl", null);
nvc.Add ("defaultUrl", null);
FormsAuthentication.EnableFormsAuthentication (nvc);
}
}
}

View File

@ -0,0 +1,13 @@
<?xml version="1.0"?>
<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<system.web>
<compilation debug="true" targetFramework="4.0" />
</system.web>
</configuration>

View File

@ -0,0 +1,14 @@
<%@ Page Language="C#" AutoEventWireup="true" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Test 05</title>
</head>
<body>
<form id="form1" runat="server">
<%= AppDomain.CurrentDomain.GetData ("BEGIN_CODE_MARKER") %><div>Default URL: <%= FormsAuthentication.DefaultUrl %><br />Login URL: <%= FormsAuthentication.LoginUrl %></div><%= AppDomain.CurrentDomain.GetData ("END_CODE_MARKER") %>
</form>
</body>
</html>