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