Skip to content

Commit 012f1bf

Browse files
Add integration test for Equation block
1 parent b010ca2 commit 012f1bf

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

Test/Notion.IntegrationTests/IBlocksClientTests.cs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,25 @@ private static IEnumerable<object[]> BlockData()
239239
Assert.Equal("https://github.com/notion-dotnet/notion-sdk-net", updatedBlock.Bookmark.Url);
240240
Assert.Equal("Github", updatedBlock.Bookmark.Caption.OfType<RichTextText>().First().Text.Content);
241241
})
242+
},
243+
new object[] {
244+
new EquationBlock
245+
{
246+
Equation = new EquationBlock.Info
247+
{
248+
Expression = "e=mc^3"
249+
}
250+
},
251+
new EquationUpdateBlock {
252+
Equation = new EquationUpdateBlock.Data
253+
{
254+
Expression = "e=mc^2"
255+
}
256+
},
257+
new Action<Block>((block) => {
258+
var updatedBlock = (EquationBlock)block;
259+
Assert.Equal("e=mc^2", updatedBlock.Equation.Expression);
260+
})
242261
}
243262
};
244263
}

0 commit comments

Comments
 (0)