-
-
Notifications
You must be signed in to change notification settings - Fork 354
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add test for task 3 of wizards and warriors exercise #1954
base: main
Are you sure you want to change the base?
Changes from all commits
39d7339
bb1fa6f
7522568
f2a7b62
597f150
6ec1735
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,15 @@ public void Warrior_is_not_vulnerable() | |
Assert.False(warrior.Vulnerable()); | ||
} | ||
|
||
[Fact] | ||
[Task(3)] | ||
public void Wizard_is_not_vulnerable_after_preparing_spell() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is the exact same test as the one starting on line 49, and I don't think it concerns Task 3, since up to that point, it doesn't matter the vulnerability of the wizard after preparing a spell. |
||
{ | ||
var wizard = new Wizard(); | ||
wizard.PrepareSpell(); | ||
Assert.False(wizard.Vulnerable()); | ||
} | ||
|
||
[Fact] | ||
[Task(4)] | ||
public void Wizard_is_vulnerable() | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think that the vulnerability of Wizards should be a concern at that point.
Since the next task of the exercise is setting the wizard to be not vulnerable after preparing a spell, at this point they should only be concerned with having a boolean property "IsSpellPrepared" set to true;