Пример #1
0
 private SvnInfoResult GetSvnInfoResultFromParameterList(TestSvnInfoResult infoResult)
 {
     return(new SvnInfoResult(
                infoResult.RepositoryId,
                infoResult.RepositoryRoot,
                infoResult.LastChangedAuthor,
                infoResult.Revision,
                infoResult.Uri,
                infoResult.Path,
                infoResult.FullPath,
                infoResult.NodeKind));
 }
Пример #2
0
            public void Should_Throw_If_Path_Is_Null()
            {
                // Given
                var testSvnInfoResult = new TestSvnInfoResult()
                {
                    Path = null
                };

                // When
                // Then
                Assert.Throws <ArgumentNullException>("path", () =>
                                                      GetSvnInfoResultFromParameterList(testSvnInfoResult));
            }
Пример #3
0
            public void Should_Throw_If_RepositoryRoot_Is_Null()
            {
                // Given
                var testSvnInfoResult = new TestSvnInfoResult()
                {
                    RepositoryRoot = null
                };

                // When
                // Then
                Assert.Throws <ArgumentNullException>("repositoryRoot", () =>
                                                      GetSvnInfoResultFromParameterList(testSvnInfoResult));
            }
Пример #4
0
            public void Should_Not_Throw_If_FullPath_Is_Null()
            {
                // Given
                var testSvnInfoResult = new TestSvnInfoResult()
                {
                    FullPath = null
                };

                // When
                var svnInfoResult = GetSvnInfoResultFromParameterList(testSvnInfoResult);

                // Then
                Assert.Null(svnInfoResult.FullPath);
            }
Пример #5
0
            public void Should_Not_Throw_If_LastChangedAuthor_Is_Null()
            {
                // Given
                var testSvnInfoResult = new TestSvnInfoResult()
                {
                    LastChangedAuthor = null
                };

                // When
                var svnInfoResult = GetSvnInfoResultFromParameterList(testSvnInfoResult);

                // Then
                Assert.Null(svnInfoResult.LastChangedAuthor);
            }