#region License
/**
* Ingenious MVC : An MVC framework for .NET 2.0
* Copyright (C) 2006, JDP Group
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
* Authors: - Kent Boogaart (kentcb@internode.on.net)
*/
#endregion
using System;
using System.Collections.Generic;
using System.Text;
using NUnit.Framework;
using Ingenious.Mvc.Configuration;
using Ingenious.Mvc.UnitTest.MockTypes;
using Ingenious.Mvc.Visualizers;
namespace Ingenious.Mvc.UnitTest.Visualizers{
/// <summary>
/// Unit tests the <see cref="ConfigurationInfoVisualizer"/> class.
/// </summary>
[TestFixture]
public sealed class ConfigurationInfoVisualizerTest : UnitTestBase
{
// [Test]
public void ShowVisualizer()
{
ConfigurationInfo configurationInfo = new ConfigurationInfo();
NavigatorInfo navigatorInfo = new NavigatorInfo("id1");
navigatorInfo.StartViewInfo = new ViewInfo("view");
navigatorInfo.ViewManagerInfo = new ViewManagerInfo("vm");
navigatorInfo.CustomConfiguration = new ControllerInfo("AN ID");
configurationInfo.NavigatorInfos.Add(navigatorInfo);
navigatorInfo = new NavigatorInfo("id 2");
navigatorInfo.Type = typeof(MockNavigator);
navigatorInfo.StartViewInfo = new ViewInfo("another view");
configurationInfo.NavigatorInfos.Add(navigatorInfo);
ViewInfo viewInfo = new ViewInfo("a view");
viewInfo.Type = typeof(MockView);
viewInfo.CustomConfiguration = "test";
viewInfo.ControllerInfo = new ControllerInfo("controller");
configurationInfo.ViewInfos.Add(viewInfo);
ConfigurationInfoVisualizer.ShowVisualizer(configurationInfo);
}
}
}
|