mirror of
https://github.com/oliverbooth/X10D
synced 2024-11-22 09:28:48 +00:00
tests: wrap multiple asserts in Assert.Multiple
This commit is contained in:
parent
fbd3e951c4
commit
45ffd08dda
@ -9,11 +9,14 @@ internal class CharTests
|
||||
[Test]
|
||||
public void IsEmoji_ShouldReturnTrue_GivenBasicEmoji()
|
||||
{
|
||||
Assert.That('✂'.IsEmoji());
|
||||
Assert.That('✅'.IsEmoji());
|
||||
Assert.That('❎'.IsEmoji());
|
||||
Assert.That('➕'.IsEmoji());
|
||||
Assert.That('➖'.IsEmoji());
|
||||
Assert.Multiple(() =>
|
||||
{
|
||||
Assert.That('✂'.IsEmoji());
|
||||
Assert.That('✅'.IsEmoji());
|
||||
Assert.That('❎'.IsEmoji());
|
||||
Assert.That('➕'.IsEmoji());
|
||||
Assert.That('➖'.IsEmoji());
|
||||
});
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
@ -70,12 +70,15 @@ internal class MarkdownTests
|
||||
[Test]
|
||||
public void MDHeading_ShouldReturnHeadingText_GivenText()
|
||||
{
|
||||
Assert.That("Hello, world!".MDHeading(1), Is.EqualTo("# Hello, world!"));
|
||||
Assert.That("Hello, world!".MDHeading(2), Is.EqualTo("## Hello, world!"));
|
||||
Assert.That("Hello, world!".MDHeading(3), Is.EqualTo("### Hello, world!"));
|
||||
Assert.That("Hello, world!".MDHeading(4), Is.EqualTo("#### Hello, world!"));
|
||||
Assert.That("Hello, world!".MDHeading(5), Is.EqualTo("##### Hello, world!"));
|
||||
Assert.That("Hello, world!".MDHeading(6), Is.EqualTo("###### Hello, world!"));
|
||||
Assert.Multiple(() =>
|
||||
{
|
||||
Assert.That("Hello, world!".MDHeading(1), Is.EqualTo("# Hello, world!"));
|
||||
Assert.That("Hello, world!".MDHeading(2), Is.EqualTo("## Hello, world!"));
|
||||
Assert.That("Hello, world!".MDHeading(3), Is.EqualTo("### Hello, world!"));
|
||||
Assert.That("Hello, world!".MDHeading(4), Is.EqualTo("#### Hello, world!"));
|
||||
Assert.That("Hello, world!".MDHeading(5), Is.EqualTo("##### Hello, world!"));
|
||||
Assert.That("Hello, world!".MDHeading(6), Is.EqualTo("###### Hello, world!"));
|
||||
});
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
Loading…
Reference in New Issue
Block a user