public void DetailWindowViewModelConstructorTest()
        {
            IProjectNotesService           projectNotesService = new ProjectNotesServiceMock(4);
            IProjectNote                   projectNote         = projectNotesService.ProjectNotes[2];
            DetailWindowViewModel_Accessor target = new DetailWindowViewModel_Accessor(projectNotesService, projectNote);

            Assert.AreEqual(target._currentNode.Value, projectNote);
        }
Example #2
0
        public void NavigateToRightTest()
        {
            PrivateObject param0 = null;                                                        // TODO: Initialize to an appropriate value
            DetailWindowViewModel_Accessor target = new DetailWindowViewModel_Accessor(param0); // TODO: Initialize to an appropriate value
            object parameter = null;                                                            // TODO: Initialize to an appropriate value

            target.NavigateToRight(parameter);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }
        public void NavigateToRightCommandTest()
        {
            IProjectNotesService           service      = new ProjectNotesServiceMock(4);
            IProjectNote                   subsequentPN = service.ProjectNotes[3];
            DetailWindowViewModel_Accessor target       = new DetailWindowViewModel_Accessor(service, service.ProjectNotes[2]);

            target.NavigateToRightCommand.Execute(this);
            Assert.AreSame(target.Document, subsequentPN.Document);
        }
Example #4
0
        public void NavigateToLeftTest()
        {
            IProjectNotesService           service    = new ProjectNotesServiceMock(4);
            IProjectNote                   currentPN  = (service.ProjectNotes[2]);
            IProjectNote                   previousPN = (service.ProjectNotes[1]);
            DetailWindowViewModel_Accessor target     = new DetailWindowViewModel_Accessor(service, currentPN);
            object parameter = new object(); // TODO: Initialize to an appropriate value

            target.NavigateToLeft(parameter);
            Assert.AreEqual(previousPN.Document, currentPN.Document);
            //Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }