private SvnInfoResult GetSvnInfoResultFromParameterList(TestSvnInfoResult infoResult) { return(new SvnInfoResult( infoResult.RepositoryId, infoResult.RepositoryRoot, infoResult.LastChangedAuthor, infoResult.Revision, infoResult.Uri, infoResult.Path, infoResult.FullPath, infoResult.NodeKind)); }
public void Should_Throw_If_Path_Is_Null() { // Given var testSvnInfoResult = new TestSvnInfoResult() { Path = null }; // When // Then Assert.Throws <ArgumentNullException>("path", () => GetSvnInfoResultFromParameterList(testSvnInfoResult)); }
public void Should_Throw_If_RepositoryRoot_Is_Null() { // Given var testSvnInfoResult = new TestSvnInfoResult() { RepositoryRoot = null }; // When // Then Assert.Throws <ArgumentNullException>("repositoryRoot", () => GetSvnInfoResultFromParameterList(testSvnInfoResult)); }
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); }
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); }