public void OnCreate_DefaultClonePathIsCorrect_ShouldBeUsed()
        {
            _gitService.Expect(x => x.GetDefaultRepoPath()).Return("DefaultRepoPath");
            var sut = new CloneRepositoriesDialogViewModel(_gitClientService, _gitService, _fileService, _eventAggregatorService);

            Assert.That(sut.ClonePath, Is.EqualTo("DefaultRepoPath"));
        }
        public void OnCreate_DefaultClonePathIsInCorrect_ShouldUseDefaultRepoPath()
        {
            _gitService.Expect(x => x.GetDefaultRepoPath()).Return(string.Empty);
            var sut = new CloneRepositoriesDialogViewModel(_gitClientService, _gitService, _fileService, _eventAggregatorService);

            Assert.That(sut.ClonePath, Is.EqualTo(Paths.DefaultRepositoryPath));
        }
示例#3
0
        public void SetUp()
        {
            _gitClientService = MockRepository.GenerateMock <IGitClientService>();
            _gitService       = MockRepository.GenerateMock <IGitService>();
            _fileService      = MockRepository.GenerateMock <IFileService>();

            _sut = CreateSut();
        }