You've already forked linux-packaging-mono
acceptance-tests
data
debian
docs
external
ikvm-native
libgc
llvm
m4
man
mcs
build
class
Accessibility
Commons.Xml.Relaxng
Cscompmgd
CustomMarshalers
Facades
I18N
IBM.Data.DB2
ICSharpCode.SharpZipLib
Microsoft.Build
Microsoft.Build.Engine
Microsoft.Build.Framework
Microsoft.Build.Tasks
Microsoft.Build.Utilities
Microsoft.CSharp
Microsoft.NuGet.Build.Tasks
Microsoft.VisualC
Microsoft.Web.Infrastructure
MicrosoftAjaxLibrary
Mono.Btls.Interface
Mono.C5
Mono.CSharp
Mono.Cairo
Mono.Cecil
Mono.Cecil.Mdb
Mono.CodeContracts
Mono.CompilerServices.SymbolWriter
Mono.Data.Sqlite
Mono.Data.Tds
Mono.Debugger.Soft
Mono.Http
Mono.Management
Mono.Messaging
Mono.Messaging.RabbitMQ
Mono.Options
Mono.Parallel
Mono.Posix
Mono.Profiler.Log
Mono.Runtime.Tests
Mono.Security
Mono.Security.Win32
Mono.Simd
Mono.Tasklets
Mono.WebBrowser
Mono.XBuild.Tasks
Novell.Directory.Ldap
PEAPI
RabbitMQ.Client
SMDiagnostics
System
System.ComponentModel.Composition.4.5
System.ComponentModel.DataAnnotations
System.Configuration
System.Configuration.Install
System.Core
System.Data
System.Data.DataSetExtensions
System.Data.Entity
System.Data.Linq
System.Data.OracleClient
System.Data.Services
System.Data.Services.Client
System.Deployment
System.Design
System.DirectoryServices
System.DirectoryServices.Protocols
System.Drawing
System.Drawing.Design
System.Dynamic
System.EnterpriseServices
System.IO.Compression
System.IO.Compression.FileSystem
System.IdentityModel
System.IdentityModel.Selectors
System.Json
System.Json.Microsoft
System.Management
System.Messaging
System.Net
System.Net.Http
System.Net.Http.Formatting
System.Net.Http.WebRequest
System.Net.Http.WinHttpHandler
System.Numerics
System.Numerics.Vectors
System.Reactive.Core
System.Reactive.Debugger
System.Reactive.Experimental
System.Reactive.Interfaces
System.Reactive.Linq
System.Reactive.Observable.Aliases
System.Reactive.PlatformServices
System.Reactive.Providers
System.Reactive.Runtime.Remoting
System.Reactive.Windows.Forms
System.Reactive.Windows.Threading
System.Reflection.Context
System.Runtime.Caching
System.Runtime.CompilerServices.Unsafe
System.Runtime.DurableInstancing
System.Runtime.Remoting
System.Runtime.Serialization
System.Runtime.Serialization.Formatters.Soap
System.Security
System.ServiceModel
System.ServiceModel.Activation
System.ServiceModel.Discovery
System.ServiceModel.Internals
System.ServiceModel.Routing
System.ServiceModel.Web
System.ServiceProcess
System.Threading.Tasks.Dataflow
System.Transactions
System.Web
Assembly
Documentation
Mono.Web.Util
ReferenceSources
System.Collections.Concurrent
System.Web
System.Web.Caching
System.Web.Compilation
System.Web.Configuration_2.0
System.Web.Handlers
System.Web.Hosting
System.Web.Mail
System.Web.Management
System.Web.Profile
System.Web.Properties
System.Web.Security
System.Web.SessionState_2.0
System.Web.UI
System.Web.UI.Adapters
System.Web.UI.HtmlControls
System.Web.UI.WebControls
System.Web.UI.WebControls.Adapters
System.Web.UI.WebControls.WebParts
System.Web.Util
Test
Cas
System.Web
System.Web.Caching
System.Web.Compilation
System.Web.Configuration
System.Web.Handlers
System.Web.Hosting
System.Web.Mail
System.Web.Profile
System.Web.Security
System.Web.SessionState
System.Web.UI
System.Web.UI.Adapters
System.Web.UI.HtmlControls
System.Web.UI.WebControls
AccessDataSourceTest.cs
AdCreatedEventArgsCas.cs
AdCreatedEventArgsTest.cs
AutoGeneratedFieldTest.cs
BaseCompareValidatorCas.cs
BaseCompareValidatorTest.cs
BaseDataBoundControlCas.cs
BaseDataBoundControlTest.cs
BaseDataListCas.cs
BaseDataListTest.cs
BaseValidatorCas.cs
BaseValidatorTest.cs
BoundColumnCas.cs
BoundColumnTest.cs
BoundFieldTest.cs
BulletedListTest.cs
ButtonColumnCas.cs
ButtonColumnTest.cs
ButtonFieldBaseTest.cs
ButtonFieldTest.cs
ButtonTest.cs
CalandarCas.cs
CalendarDayCas.cs
CalendarDayTest.cs
CalendarTest.cs
CallBackTest.cs
ChangePasswordTest.cs
CheckBoxCas.cs
CheckBoxFieldTest.cs
CheckBoxListCas.cs
CheckBoxListTest.cs
CheckBoxTest.cs
CircleHotSpotTest.cs
CommandFieldTest.cs
CompareValidatorCas.cs
CompareValidatorTest.cs
CompleteWizardStepTest.cs
CompositeControlCas.cs
CompositeControlTest.cs
CompositeDataBoundControlTest.cs
ContentTest.cs
ControlParameterTest.cs
CookieParameterTest.cs
CreateUserWizardStepTest.cs
CreateUserWizardTest.cs
CrossPagePostingTest.cs
CustomValidatorCas.cs
CustomValidatorTest.cs
DataBoundControlCas.cs
DataBoundControlTest.cs
DataControlFieldCollectionTest.cs
DataControlFieldTest.cs
DataGridCas.cs
DataGridColumnCas.cs
DataGridColumnTest.cs
DataGridItemCas.cs
DataGridItemCollectionCas.cs
DataGridItemCollectionTest.cs
DataGridItemTest.cs
DataGridPagerStyleCas.cs
DataGridPagerStyleTest.cs
DataGridTest.cs
DataKeyArrayTest.cs
DataKeyCollectionCas.cs
DataKeyCollectionTest.cs
DataKeyTest.cs
DataListCas.cs
DataListItemCas.cs
DataListItemCollectionCas.cs
DataListItemCollectionTest.cs
DataListItemTest.cs
DataListTest.cs
DataSourceControlTest.cs
DataSourceViewTest.cs
DetailsViewRowCollectionTest.cs
DetailsViewRowTest.cs
DetailsViewTest.cs.REMOVED.git-id
DropDownListCas.cs
DropDownListTest.cs
EditCommandColumnCas.cs
EditCommandColumnTest.cs
FileUploadTest.cs
FontInfoCas.cs
FontInfoTest.cs
FontNamesConverterCas.cs
FontNamesConverterTest.cs
FontUnitCas.cs
FontUnitTest.cs
FormParameterTest.cs
FormViewCas.cs
FormViewRowTest.cs
FormViewTest.cs
GridViewRowCollectionTest.cs
GridViewRowTest.cs
GridViewTest.cs.REMOVED.git-id
HierarchicalDataBoundControlTest.cs
HotSpotCollectionTest.cs
HotSpotTest.cs
HyperLinkCas.cs
HyperLinkColumnCas.cs
HyperLinkColumnTest.cs
HyperLinkFieldTest.cs
HyperLinkTest.cs
ImageButtonCas.cs
ImageButtonTest.cs
ImageCas.cs
ImageFieldTest.cs
ImageMapTest.cs
ImageTest.cs
LabelCas.cs
LabelTest.cs
LinkButtonCas.cs
LinkButtonTest.cs
ListBoxCas.cs
ListBoxTest.cs
ListControlCas.cs
ListControlTest.cs
ListItemCas.cs
ListItemCollectionCas.cs
ListItemCollectionTest.cs
ListItemTest.cs
LiteralCas.cs
LiteralTest.cs
LoginCas.cs
LoginNameCas.cs
LoginNameTest.cs
LoginStatusCas.cs
LoginStatusTest.cs
LoginTest.cs
MappingUrlTest.cs
MasterPageTest.cs
MenuItemBindingTest.cs
MenuTest.cs
MonthChangedEventArgsCas.cs
MonthChangedEventArgsTest.cs
MultiViewControlBuilderTest.cs
MultiViewTest.cs
ObjectDataSourceTest.cs
ObjectDataSourceViewTest.cs
PagedDataSourceCas.cs
PagedDataSourceTest.cs
PagerSettingsTest.cs
PanelCas.cs
PanelTest.cs
ParameterTest.cs
PasswordRecoveryTest.cs
PolygonHotSpotTest.cs
QueryStringParameterTest.cs
RadioButtonCas.cs
RadioButtonListCas.cs
RadioButtonListTest.cs
RadioButtonTest.cs
RangeValidatorCas.cs
RangeValidatorTest.cs
RectangleHotSpotTest.cs
RegularExpressionValidatorCas.cs
RegularExpressionValidatorTest.cs
RepeatInfoCas.cs
RepeatInfoTest.auto.4.0.cs.REMOVED.git-id
RepeatInfoTest.cs
RepeatInfoUser.cs
RepeaterCas.cs
RepeaterItemCollectionTest.cs
RepeaterTest.cs
RequiredFieldValidatorCas.cs
RoleGroupCas.cs
RoleGroupCollectionCas.cs
RoleGroupCollectionTest.cs
RoleGroupTest.cs
RouteParameterTest.cs
SelectedDatesCollectionCas.cs
SelectedDatesCollectionTest.cs
SessionParameterTest.cs
SiteMapDataSourceTest.cs
SiteMapPathTest.cs
SqlDataSourceTest.cs
SqlDataSourceViewTest.cs
StyleCas.cs
StyleTest.cs
TableCas.cs
TableCellCas.cs
TableCellTest.cs
TableFooterRowCas.cs
TableFooterRowTest.cs
TableHeaderCellCas.cs
TableHeaderCellTest.cs
TableHeaderRowCas.cs
TableHeaderRowTest.cs
TableItemStyleCas.cs
TableItemStyleTest.cs
TableRowCas.cs
TableRowTest.cs
TableSectionStyleCas.cs
TableSectionStyleTest.cs
TableStyleCas.cs
TableStyleTest.cs
TableTest.cs
TargetConverterCas.cs
TargetConverterTest.cs
TemplateFieldTest.cs
TestControlIDConverter.cs
TextBoxCas.cs
TextBoxTest.cs
ThemeTest.cs
TreeNodeBindingCollectionTest.cs
TreeNodeBindingTest.cs
TreeNodeCollectionTest.cs
TreeNodeStyleCollectionTest.cs
TreeNodeStyleTest.cs
TreeNodeTest.cs
TreeViewCas.cs
TreeViewTest.cs.REMOVED.git-id
UnitCas.cs
UnitConverterCas.cs
UnitConverterTest.cs
UnitTest.cs
ValidatedControlConverterCas.cs
ValidatedControlConverterTest.cs
ValidationSummaryCas.cs
ValidationSummaryTest.cs
ValidatorTest.cs
ViewTest.cs
WebColorConverterCas.cs
WebColorConverterTest.cs
WebControlCas.cs
WebControlTest.cs
WizardStepBaseTest.cs
WizardStepCollectionTest.cs
WizardStepTest.cs
WizardTest.cs
XmlCas.cs
XmlDataSourceCas.cs
XmlDataSourceTest.cs
XmlTest.cs
System.Web.UI.WebControls.Adapters
System.Web.UI.WebControls.WebParts
System.Web.Util
TestMonoWeb
mainsoft
standalone
standalone-runner-support
standalone-tests
tools
DataBinderTests.cs
Makefile
test.aspx
test2.aspx
test3.aspx
test4.aspx
test5.aspx
test6.aspx
resources
ASPState.sql
Makefile
SQLiteProviders_DatabaseSchema.sql
System.Web.dll.sources
System.Web_standalone_test.dll.sources
System.Web_test.dll.sources
UplevelHelperDefinitions.xml
standalone-runner-support.dll.sources
System.Web.Abstractions
System.Web.ApplicationServices
System.Web.DynamicData
System.Web.Extensions
System.Web.Extensions.Design
System.Web.Http
System.Web.Http.SelfHost
System.Web.Http.WebHost
System.Web.Mobile
System.Web.Mvc3
System.Web.Razor
System.Web.RegularExpressions
System.Web.Routing
System.Web.Services
System.Web.WebPages
System.Web.WebPages.Deployment
System.Web.WebPages.Razor
System.Windows
System.Windows.Forms
System.Windows.Forms.DataVisualization
System.Workflow.Activities
System.Workflow.ComponentModel
System.Workflow.Runtime
System.XML
System.Xaml
System.Xml.Linq
System.Xml.Serialization
SystemWebTestShim
WebMatrix.Data
WindowsBase
aot-compiler
corlib
dlr
doc
legacy
lib
monodoc
notes
reference-assemblies
referencesource
test-helpers
LICENSE
Makefile
Open.snk
README
ecma.pub
mono.pub
mono.snk
msfinal.pub
reactive.pub
silverlight.pub
winfx.pub
winfx3.pub
docs
errors
ilasm
jay
mcs
packages
tests
tools
AUTHORS
COPYING
INSTALL.txt
Makefile
MonoIcon.png
README
ScalableMonoIcon.svg
mkinstalldirs
mk
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
85 lines
2.3 KiB
C#
85 lines
2.3 KiB
C#
//
|
|
// TableHeaderRowTest.cs
|
|
// - Unit tests for System.Web.UI.WebControls.TableHeaderRow
|
|
//
|
|
// Author:
|
|
// Sebastien Pouliot <sebastien@ximian.com>
|
|
//
|
|
// Copyright (C) 2005 Novell, Inc (http://www.novell.com)
|
|
//
|
|
// Permission is hereby granted, free of charge, to any person obtaining
|
|
// a copy of this software and associated documentation files (the
|
|
// "Software"), to deal in the Software without restriction, including
|
|
// without limitation the rights to use, copy, modify, merge, publish,
|
|
// distribute, sublicense, and/or sell copies of the Software, and to
|
|
// permit persons to whom the Software is furnished to do so, subject to
|
|
// the following conditions:
|
|
//
|
|
// The above copyright notice and this permission notice shall be
|
|
// included in all copies or substantial portions of the Software.
|
|
//
|
|
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
//
|
|
|
|
|
|
using System;
|
|
using System.Drawing;
|
|
using System.IO;
|
|
using System.Web;
|
|
using System.Web.UI;
|
|
using System.Web.UI.WebControls;
|
|
|
|
using NUnit.Framework;
|
|
|
|
namespace MonoTests.System.Web.UI.WebControls {
|
|
|
|
public class TestTableHeaderRow : TableHeaderRow, ITableRowTest {
|
|
|
|
public string Tag {
|
|
get { return base.TagName; }
|
|
}
|
|
|
|
public StateBag StateBag {
|
|
get { return base.ViewState; }
|
|
}
|
|
|
|
public string Render ()
|
|
{
|
|
StringWriter sw = new StringWriter ();
|
|
sw.NewLine = "\n";
|
|
HtmlTextWriter writer = new HtmlTextWriter (sw);
|
|
base.Render (writer);
|
|
return writer.InnerWriter.ToString ();
|
|
}
|
|
|
|
public Style GetStyle ()
|
|
{
|
|
return base.CreateControlStyle ();
|
|
}
|
|
}
|
|
|
|
[TestFixture]
|
|
public class TableHeaderRowTest : TableRowTest {
|
|
|
|
// note: strangely TableSection defaults to TableRowSection.TableBody
|
|
// so all TableRowTest tests should be identical
|
|
|
|
public override TableRow GetNewTableRow ()
|
|
{
|
|
return new TableHeaderRow ();
|
|
}
|
|
|
|
public override ITableRowTest GetNewTestTableRow ()
|
|
{
|
|
return new TestTableHeaderRow ();
|
|
}
|
|
}
|
|
}
|
|
|