File tree Expand file tree Collapse file tree 2 files changed +0
-5
lines changed Expand file tree Collapse file tree 2 files changed +0
-5
lines changed Original file line number Diff line number Diff line change @@ -98,7 +98,6 @@ public void QueryingTheCommitHistoryWithUnknownShaOrInvalidEntryPointThrows()
98
98
{
99
99
Assert . Throws < LibGit2SharpException > ( ( ) => repo . Commits . QueryBy ( new Filter { Since = Constants . UnknownSha } ) . Count ( ) ) ;
100
100
Assert . Throws < LibGit2SharpException > ( ( ) => repo . Commits . QueryBy ( new Filter { Since = "refs/heads/deadbeef" } ) . Count ( ) ) ;
101
- Assert . Throws < ArgumentNullException > ( ( ) => repo . Commits . QueryBy ( new Filter { Since = null } ) . Count ( ) ) ;
102
101
}
103
102
}
104
103
@@ -120,8 +119,6 @@ public void QueryingTheCommitHistoryWithBadParamsThrows()
120
119
{
121
120
using ( var repo = new Repository ( BareTestRepoPath ) )
122
121
{
123
- Assert . Throws < ArgumentException > ( ( ) => repo . Commits . QueryBy ( new Filter { Since = string . Empty } ) ) ;
124
- Assert . Throws < ArgumentNullException > ( ( ) => repo . Commits . QueryBy ( new Filter { Since = null } ) ) ;
125
122
Assert . Throws < ArgumentNullException > ( ( ) => repo . Commits . QueryBy ( null ) ) ;
126
123
}
127
124
}
Original file line number Diff line number Diff line change @@ -80,8 +80,6 @@ IEnumerator IEnumerable.GetEnumerator()
80
80
public ICommitLog QueryBy ( Filter filter )
81
81
{
82
82
Ensure . ArgumentNotNull ( filter , "filter" ) ;
83
- Ensure . ArgumentNotNull ( filter . Since , "filter.Since" ) ;
84
- Ensure . ArgumentNotNullOrEmptyString ( filter . Since . ToString ( ) , "filter.Since" ) ;
85
83
86
84
return new CommitLog ( repo , filter ) ;
87
85
}
You can’t perform that action at this time.
0 commit comments