fix for SPRNET-1022
fixed Page/UserControl SharedState bug
This commit is contained in:
@@ -123,6 +123,7 @@
|
||||
</Compile>
|
||||
<Compile Include="Web\Services\WebServiceExporterTests.cs" />
|
||||
<Compile Include="Web\Support\AbstractHandlerFactoryTests.cs" />
|
||||
<Compile Include="Web\Support\LocalResourceManagerTests.cs" />
|
||||
<Compile Include="Web\Support\MimeMediaTypeTests.cs" />
|
||||
<Compile Include="Web\Support\PageHandlerFactoryTests.cs" />
|
||||
<Compile Include="Web\Support\ResultFactoryRegistryTests.cs" />
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
#region License
|
||||
|
||||
/*
|
||||
* Copyright <20> 2002-2008 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#endregion
|
||||
|
||||
#region Imports
|
||||
|
||||
using System;
|
||||
|
||||
#endregion
|
||||
|
||||
namespace Spring.Web.Support
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <author>Erich Eichinger</author>
|
||||
public class LocalResourceManagerTests
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@@ -46,6 +46,13 @@ namespace Spring.Web.UI
|
||||
[TestFixture]
|
||||
public class PageTests : TestWebContextTests
|
||||
{
|
||||
[Test]
|
||||
public void NoSharedStateAtConstruction()
|
||||
{
|
||||
Page page = new Page();
|
||||
Assert.IsNull(page.SharedState);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void Validate()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user