public void OpenNewWindowTest1() { var service = new ProjectNotesServiceMock(5); var target = new ProjectNoteViewModel_Accessor(service, service.ProjectNotes[0]); string test = "test"; //target.OpenNewWindow(test); // TODO: Fix this: new DetailWindow(vm); throws an exception; is it possible to create no new DetailWindow in this method? Assert.Inconclusive("TODO: Fix this: new DetailWindow(vm); throws an exception; is it possible to create no new DetailWindow in this method?"); }
public void OpenNewWindowTest() { var service = new ProjectNotesServiceMock(5); var target = new ProjectNoteViewModel_Accessor(service, service.ProjectNotes[0]); string test = "test"; target.OpenNewWindow(test); var window = Application.Current.MainWindow; Assert.IsNotNull(window); }