Applying same text modification in several lines
Remove identical text at the beginning of several lines and the closing parenthesis.
Start file
Assert.ThrowsAsync<Exception>(() => _auction.StartSellingItem()); Assert.ThrowsAsync<Exception>(() => _application.StartBiddingIn(_auction)); Assert.ThrowsAsync<Exception>(() => _auction.HasReceivedJoinRequestFromSniper()); Assert.ThrowsAsync<Exception>(() => _auction.AnnounceClosed()); Assert.ThrowsAsync<Exception>(() => _application.ShowsSniperHasLostAuction());
End file
_auction.StartSellingItem(); _application.StartBiddingIn(_auction); _auction.HasReceivedJoinRequestFromSniper(); _auction.AnnounceClosed(); _application.ShowsSniperHasLostAuction();
View Diff
1,5c1,5 < Assert.ThrowsAsync<Exception>(() => _auction.StartSellingItem()); < Assert.ThrowsAsync<Exception>(() => _application.StartBiddingIn(_auction)); < Assert.ThrowsAsync<Exception>(() => _auction.HasReceivedJoinRequestFromSniper()); < Assert.ThrowsAsync<Exception>(() => _auction.AnnounceClosed()); < Assert.ThrowsAsync<Exception>(() => _application.ShowsSniperHasLostAuction()); \ No newline at end of file --- > _auction.StartSellingItem(); > _application.StartBiddingIn(_auction); > _auction.HasReceivedJoinRequestFromSniper(); > _auction.AnnounceClosed(); > _application.ShowsSniperHasLostAuction(); \ No newline at end of file
Solutions by @ParsaAmini:
Unlock 4 remaining solutions by signing in and submitting your own entry