Skip to content

Commit c79531a

Browse files
Discard unused lambda args
1 parent 3b4324b commit c79531a

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Test/Notion.IntegrationTests/BlocksClientTests.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ private static IEnumerable<object[]> BlockData()
147147
}
148148
}
149149
},
150-
new Action<IBlock, INotionClient>((block, client) =>
150+
new Action<IBlock, INotionClient>((block, _) =>
151151
{
152152
var updatedBlock = (BookmarkBlock)block;
153153
Assert.Equal("https://github.com/notion-dotnet/notion-sdk-net", updatedBlock.Bookmark.Url);
@@ -158,7 +158,7 @@ private static IEnumerable<object[]> BlockData()
158158
{
159159
new EquationBlock { Equation = new EquationBlock.Info { Expression = "e=mc^3" } },
160160
new EquationUpdateBlock { Equation = new EquationUpdateBlock.Info { Expression = "e=mc^2" } },
161-
new Action<IBlock, INotionClient>((block, client) =>
161+
new Action<IBlock, INotionClient>((block, _) =>
162162
{
163163
var updatedBlock = (EquationBlock)block;
164164
Assert.Equal("e=mc^2", updatedBlock.Equation.Expression);
@@ -195,7 +195,7 @@ private static IEnumerable<object[]> BlockData()
195195
}
196196
}
197197
},
198-
new Action<IBlock, INotionClient>((block, client) =>
198+
new Action<IBlock, INotionClient>((block, _) =>
199199
{
200200
block.Should().NotBeNull();
201201

@@ -235,7 +235,7 @@ private static IEnumerable<object[]> BlockData()
235235
}
236236
}
237237
},
238-
new Action<IBlock, INotionClient>((block, client) =>
238+
new Action<IBlock, INotionClient>((block, _) =>
239239
{
240240
Assert.NotNull(block);
241241
var calloutBlock = Assert.IsType<CalloutBlock>(block);
@@ -265,7 +265,7 @@ private static IEnumerable<object[]> BlockData()
265265
}
266266
}
267267
},
268-
new Action<IBlock, INotionClient>((block, client) =>
268+
new Action<IBlock, INotionClient>((block, _) =>
269269
{
270270
Assert.NotNull(block);
271271
var quoteBlock = Assert.IsType<QuoteBlock>(block);
@@ -296,7 +296,7 @@ private static IEnumerable<object[]> BlockData()
296296
}
297297
}
298298
},
299-
new Action<IBlock, INotionClient>((block, client) =>
299+
new Action<IBlock, INotionClient>((block, _) =>
300300
{
301301
Assert.NotNull(block);
302302
var imageBlock = Assert.IsType<ImageBlock>(block);
@@ -322,7 +322,7 @@ private static IEnumerable<object[]> BlockData()
322322
Url = "https://www.iaspaper.net/wp-content/uploads/2017/09/TNEA-Online-Application.jpg"
323323
}
324324
},
325-
new Action<IBlock, INotionClient>((block, client) =>
325+
new Action<IBlock, INotionClient>((block, _) =>
326326
{
327327
Assert.NotNull(block);
328328
var embedBlock = Assert.IsType<EmbedBlock>(block);
@@ -345,7 +345,7 @@ private static IEnumerable<object[]> BlockData()
345345
{
346346
LinkToPage = new ParentPageInput { PageId = "3c357473a28149a488c010d2b245a589" }
347347
},
348-
new Action<IBlock, INotionClient>((block, client) =>
348+
new Action<IBlock, INotionClient>((block, _) =>
349349
{
350350
Assert.NotNull(block);
351351
var linkToPageBlock = Assert.IsType<LinkToPageBlock>(block);

0 commit comments

Comments
 (0)