#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.Navigators;
using Ingenious.Mvc.UnitTest.MockTypes;
using Ingenious.Mvc.Visualizers;
namespace Ingenious.Mvc.UnitTest.Visualizers{
/// <summary>
/// Unit tests the <see cref="TaskVisualizer"/> class.
/// </summary>
[TestFixture]
public sealed class TaskVisualizerTest : UnitTestBase
{
// [Test]
public void ShowVisualizer()
{
Configure("Complex");
//start task1
Task task1 = TaskManager.StartTask("navigator1");
OpenNavigator navigator1 = task1.Manager.GetNavigatorForTask(task1) as OpenNavigator;
IViewManager viewManager1 = TaskManager.GetViewManagerForTask(task1);
//now go to view2 in task1
navigator1.NavigateTo("view2");
//now start task2
Task task2 = TaskManager.StartTask("navigator2");
OpenNavigator navigator2 = TaskManager.GetNavigatorForTask(task2) as OpenNavigator;
IViewManager viewManager2 = TaskManager.GetViewManagerForTask(task2);
//now go to view6 in task2
navigator2.NavigateTo("view6");
TaskVisualizer.ShowVisualizer(task1);
}
}
}
|