Index: Core/Gui/test/Core.Gui.Test/Forms/ViewHost/DocumentViewControllerTest.cs =================================================================== diff -u -rd7c0bf76dd46e5b4f205e85c25a2a65643a5a530 -r1a42214e1cabedcc3545d1dfc0ec7f39a10810a7 --- Core/Gui/test/Core.Gui.Test/Forms/ViewHost/DocumentViewControllerTest.cs (.../DocumentViewControllerTest.cs) (revision d7c0bf76dd46e5b4f205e85c25a2a65643a5a530) +++ Core/Gui/test/Core.Gui.Test/Forms/ViewHost/DocumentViewControllerTest.cs (.../DocumentViewControllerTest.cs) (revision 1a42214e1cabedcc3545d1dfc0ec7f39a10810a7) @@ -131,15 +131,17 @@ var dialogParent = mocks.Stub(); var viewHost = mocks.StrictMock(); - const string viewName = ""; + const string title = ""; + const string symbol = "<symbol>"; + var fontFamily = new FontFamily(); viewHost.Stub(vh => vh.ViewClosed += null).IgnoreArguments(); viewHost.Stub(vh => vh.ViewClosed -= null).IgnoreArguments(); viewHost.Stub(vh => vh.DocumentViews).Return(new IView[0]); viewHost.Expect(vm => vm.AddDocumentView(Arg<TestView>.Is.NotNull, - Arg<string>.Is.Equal(viewName), - Arg<string>.Is.Equal(string.Empty), - Arg<FontFamily>.Is.Null)) + Arg<string>.Is.Equal(title), + Arg<string>.Is.Equal(symbol), + Arg<FontFamily>.Is.Same(fontFamily))) .WhenCalled(invocation => { view = invocation.Arguments[0] as TestView; }); mocks.ReplayAll(); @@ -168,8 +170,10 @@ { Assert.IsInstanceOf<TestView>(v); Assert.AreSame(data, o); - return viewName; - } + return title; + }, + GetSymbol = () => symbol, + GetFontFamily = () => fontFamily }, new ViewInfo<int, TestView>() };