Browse Source

fixed the unit test that was breaking the build.

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2554 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
David Alpert 19 years ago
parent
commit
ec0a6d97ce
  1. 26
      src/Main/Base/Project/Src/Services/NavigationService/NavigationService.cs
  2. 1
      src/Main/Base/Test/Services_Navigation/NavigationServiceTestFixture.cs

26
src/Main/Base/Project/Src/Services/NavigationService/NavigationService.cs

@ -217,23 +217,20 @@ namespace ICSharpCode.SharpDevelop @@ -217,23 +217,20 @@ namespace ICSharpCode.SharpDevelop
OnHistoryChanged();
}
/* // untested
// Unit test covered but the test does not yet verify the results.
public static INavigationPoint Log()
{
// IWorkbenchWindow window = WorkbenchSingleton.Workbench.ActiveWorkbenchWindow;
// if (window == null) {
// return null;
// }
//
// IViewContent view = window.ViewContent;
// if (view == null) {
// return null;
// }
//
// return view.BuildNavPoint();
return null;
if (WorkbenchSingleton.Workbench == null) {
return null;
}
IViewContent view = WorkbenchSingleton.Workbench.ActiveViewContent;
if (view == null) {
return null;
}
return view.BuildNavPoint();
}
*/
/// <summary>
/// Gets a <see cref="List<T>"/> of the <see cref="INavigationPoints"/> that
/// are currently in the collection.
@ -452,3 +449,4 @@ namespace ICSharpCode.SharpDevelop @@ -452,3 +449,4 @@ namespace ICSharpCode.SharpDevelop

1
src/Main/Base/Test/Services_Navigation/NavigationServiceTestFixture.cs

@ -632,3 +632,4 @@ namespace NavigationServiceTests @@ -632,3 +632,4 @@ namespace NavigationServiceTests
#endregion
}
}

Loading…
Cancel
Save