Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions exercises/practice/wordy/.meta/tests.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,21 @@
[88bf4b28-0de3-4883-93c7-db1b14aa806e]
description = "just a number"

[18983214-1dfc-4ebd-ac77-c110dde699ce]
description = "just a zero"

[607c08ee-2241-4288-916d-dae5455c87e6]
description = "just a negative number"

[bb8c655c-cf42-4dfc-90e0-152fcfd8d4e0]
description = "addition"

[bb9f2082-171c-46ad-ad4e-c3f72087c1b5]
description = "addition with a left hand zero"

[6fa05f17-405a-4742-80ae-5d1a8edb0d5d]
description = "addition with a right hand zero"

[79e49e06-c5ae-40aa-a352-7a3a01f70015]
description = "more addition"

Expand Down
24 changes: 24 additions & 0 deletions exercises/practice/wordy/WordyTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,36 @@ public void Just_a_number()
Assert.Equal(5, Wordy.Answer("What is 5?"));
}

[Fact(Skip = "Remove this Skip property to run this test")]
public void Just_a_zero()
{
Assert.Equal(0, Wordy.Answer("What is 0?"));
}

[Fact(Skip = "Remove this Skip property to run this test")]
public void Just_a_negative_number()
{
Assert.Equal(-123, Wordy.Answer("What is -123?"));
}

[Fact(Skip = "Remove this Skip property to run this test")]
public void Addition()
{
Assert.Equal(2, Wordy.Answer("What is 1 plus 1?"));
}

[Fact(Skip = "Remove this Skip property to run this test")]
public void Addition_with_a_left_hand_zero()
{
Assert.Equal(2, Wordy.Answer("What is 0 plus 2?"));
}

[Fact(Skip = "Remove this Skip property to run this test")]
public void Addition_with_a_right_hand_zero()
{
Assert.Equal(3, Wordy.Answer("What is 3 plus 0?"));
}

[Fact(Skip = "Remove this Skip property to run this test")]
public void More_addition()
{
Expand Down
Loading