@@ -250,7 +250,9 @@ public async Task LocalBaseHeadAndMergeBase_DontFetch()
250250
251251 var mergeBaseSha = await gitClient . GetPullRequestMergeBase ( repo , targetCloneUrl , baseSha , headSha , baseRef , pullNumber ) ;
252252
253+ #pragma warning disable 618 // Type or member is obsolete
253254 repo . Network . DidNotReceiveWithAnyArgs ( ) . Fetch ( null as Remote , null , null as FetchOptions ) ;
255+ #pragma warning restore 618 // Type or member is obsolete
254256 Assert . That ( expectMergeBaseSha , Is . EqualTo ( mergeBaseSha ) ) ;
255257 }
256258
@@ -274,7 +276,9 @@ public async Task WhenToFetch(string baseSha, string headSha, string mergeBaseSh
274276 }
275277 catch ( NotFoundException ) { /* We're interested in calls to Fetch even if it throws */ }
276278
279+ #pragma warning disable 618 // Type or member is obsolete
277280 repo . Network . Received ( receivedFetch ) . Fetch ( Arg . Any < Remote > ( ) , Arg . Any < string [ ] > ( ) , Arg . Any < FetchOptions > ( ) ) ;
281+ #pragma warning restore 618 // Type or member is obsolete
278282 }
279283
280284 [ TestCase ( "baseSha" , null , "mergeBaseSha" , "baseRef" , 777 , "refs/pull/777/head" ) ]
@@ -295,7 +299,9 @@ public async Task WhatToFetch(string baseSha, string headSha, string mergeBaseSh
295299 }
296300 catch ( NotFoundException ) { /* We're interested in calls to Fetch even if it throws */ }
297301
302+ #pragma warning disable 618 // Type or member is obsolete
298303 repo . Network . Received ( 1 ) . Fetch ( Arg . Any < Remote > ( ) , Arg . Is < IEnumerable < string > > ( x => x . Contains ( expectRefSpec ) ) , Arg . Any < FetchOptions > ( ) ) ;
304+ #pragma warning restore 618 // Type or member is obsolete
299305 }
300306
301307 static IRepository MockRepo ( string baseSha , string headSha , string mergeBaseSha )
0 commit comments