Index: Core/Gui/test/Core.Gui.Test/Forms/ViewHost/DocumentViewControllerTest.cs =================================================================== diff -u -r1a42214e1cabedcc3545d1dfc0ec7f39a10810a7 -rf52e3a6fbbb3707b5f08d34ec3c4d1df09d01e06 --- Core/Gui/test/Core.Gui.Test/Forms/ViewHost/DocumentViewControllerTest.cs (.../DocumentViewControllerTest.cs) (revision 1a42214e1cabedcc3545d1dfc0ec7f39a10810a7) +++ Core/Gui/test/Core.Gui.Test/Forms/ViewHost/DocumentViewControllerTest.cs (.../DocumentViewControllerTest.cs) (revision f52e3a6fbbb3707b5f08d34ec3c4d1df09d01e06) @@ -208,7 +208,7 @@ viewHost.Stub(vh => vh.DocumentViews).Return(new IView[0]); viewHost.Expect(vm => vm.AddDocumentView(Arg.Is.NotNull, Arg.Is.Equal(viewName), - Arg.Is.Equal(string.Empty), + Arg.Is.Null, Arg.Is.Null)) .WhenCalled(invocation => { view = invocation.Arguments[0] as TestView; }); @@ -266,7 +266,7 @@ viewHost.Stub(vh => vh.DocumentViews).Return(new IView[0]); viewHost.Expect(vm => vm.AddDocumentView(Arg.Is.NotNull, Arg.Is.Anything, - Arg.Is.Equal(string.Empty), + Arg.Is.Null, Arg.Is.Null)) .WhenCalled(invocation => { view = invocation.Arguments[0] as TestViewDerivative; }); @@ -308,7 +308,7 @@ viewHost.Stub(vh => vh.DocumentViews).Return(new IView[0]); viewHost.Expect(vm => vm.AddDocumentView(Arg.Is.NotNull, Arg.Is.Anything, - Arg.Is.Equal(string.Empty), + Arg.Is.Null, Arg.Is.Null)) .WhenCalled(invocation => { view = invocation.Arguments[0] as TestView; }); @@ -350,7 +350,7 @@ viewHost.Stub(vh => vh.DocumentViews).Return(new IView[0]); viewHost.Expect(vm => vm.AddDocumentView(Arg.Is.NotNull, Arg.Is.Anything, - Arg.Is.Equal(string.Empty), + Arg.Is.Null, Arg.Is.Null)) .WhenCalled(invocation => { view = invocation.Arguments[0] as TestViewDerivative; }); @@ -438,7 +438,7 @@ viewHost.Stub(vh => vh.DocumentViews).Return(new IView[0]); viewHost.Expect(vm => vm.AddDocumentView(Arg.Is.NotNull, Arg.Is.Anything, - Arg.Is.Equal(string.Empty), + Arg.Is.Null, Arg.Is.Null)) .WhenCalled(invocation => { view = invocation.Arguments[0] as TestView; }); @@ -487,7 +487,7 @@ viewHost.Stub(vh => vh.DocumentViews).Return(new IView[0]); viewHost.Expect(vm => vm.AddDocumentView(Arg.Is.NotNull, Arg.Is.Anything, - Arg.Is.Equal(string.Empty), + Arg.Is.Null, Arg.Is.Null)) .WhenCalled(invocation => { view = invocation.Arguments[0] as TestView; }); @@ -543,7 +543,7 @@ viewHost.Stub(vh => vh.DocumentViews).Return(new IView[0]); viewHost.Expect(vm => vm.AddDocumentView(Arg.Is.NotNull, Arg.Is.Anything, - Arg.Is.Equal(string.Empty), + Arg.Is.Null, Arg.Is.Null)) .WhenCalled(invocation => { view = invocation.Arguments[0] as TestView; }); @@ -600,7 +600,7 @@ viewHost.Stub(vh => vh.DocumentViews).Return(new IView[0]); viewHost.Expect(vm => vm.AddDocumentView(Arg.Is.NotNull, Arg.Is.Anything, - Arg.Is.Equal(string.Empty), + Arg.Is.Null, Arg.Is.Null)) .WhenCalled(invocation => { view = invocation.Arguments[0] as TestViewDerivative; }); @@ -645,11 +645,11 @@ viewHost.Stub(vh => vh.DocumentViews).Return(new IView[0]); viewHost.Expect(vm => vm.AddDocumentView(Arg.Matches(c => c.Data == data1), Arg.Is.Anything, - Arg.Is.Equal(string.Empty), + Arg.Is.Null, Arg.Is.Null)); viewHost.Expect(vm => vm.AddDocumentView(Arg.Matches(c => c.Data == data2), Arg.Is.Anything, - Arg.Is.Equal(string.Empty), + Arg.Is.Null, Arg.Is.Null)); mocks.ReplayAll(); @@ -685,7 +685,7 @@ viewHost.Stub(vh => vh.DocumentViews).Return(viewList); viewHost.Expect(vm => vm.AddDocumentView(Arg.Is.NotNull, Arg.Is.Anything, - Arg.Is.Equal(string.Empty), + Arg.Is.Null, Arg.Is.Null)) .WhenCalled(invocation => viewList.Add(invocation.Arguments[0] as TestView)); viewHost.Expect(vh => vh.BringToFront(Arg.Matches(c => c == viewList.First()))); @@ -875,7 +875,7 @@ viewHost.Stub(vh => vh.DocumentViews).Return(documentViews); viewHost.Expect(vm => vm.AddDocumentView(Arg.Is.NotNull, Arg.Is.Anything, - Arg.Is.Equal(string.Empty), + Arg.Is.Null, Arg.Is.Null)) .WhenCalled(invocation => { documentViews.Add(invocation.Arguments[0] as TestView); }) .Repeat.Twice(); @@ -966,7 +966,7 @@ viewHost.Stub(vh => vh.DocumentViews).Return(documentViews); viewHost.Expect(vm => vm.AddDocumentView(Arg.Is.NotNull, Arg.Is.Anything, - Arg.Is.Equal(string.Empty), + Arg.Is.Null, Arg.Is.Null)) .WhenCalled(invocation => { documentViews.Add(invocation.Arguments[0] as TestView); }) .Repeat.Twice(); @@ -1008,7 +1008,7 @@ viewHost.Stub(vh => vh.DocumentViews).Return(documentViews); viewHost.Expect(vm => vm.AddDocumentView(Arg.Is.NotNull, Arg.Is.Anything, - Arg.Is.Equal(string.Empty), + Arg.Is.Null, Arg.Is.Null)) .WhenCalled(invocation => { documentViews.Add(invocation.Arguments[0] as TestView); }) .Repeat.Twice(); @@ -1053,7 +1053,7 @@ viewHost.Stub(vh => vh.DocumentViews).Return(documentViews); viewHost.Expect(vm => vm.AddDocumentView(Arg.Is.NotNull, Arg.Is.Anything, - Arg.Is.Equal(string.Empty), + Arg.Is.Null, Arg.Is.Null)) .WhenCalled(invocation => { documentViews.Add(invocation.Arguments[0] as TestView); }) .Repeat.Twice(); @@ -1116,7 +1116,7 @@ viewHost.Stub(vh => vh.DocumentViews).Return(documentViews); viewHost.Expect(vm => vm.AddDocumentView(Arg.Is.NotNull, Arg.Is.Anything, - Arg.Is.Equal(string.Empty), + Arg.Is.Null, Arg.Is.Null)) .WhenCalled(invocation => { documentViews.Add(invocation.Arguments[0] as TestView); }); viewHost.Expect(vh => vh.Remove(Arg.Is.NotNull))