diff --git a/test/LibraryTests/FullHealthTests.cs b/test/LibraryTests/FullHealthTests.cs new file mode 100644 index 0000000..104ec69 --- /dev/null +++ b/test/LibraryTests/FullHealthTests.cs @@ -0,0 +1,24 @@ +using Library; +using NUnit.Framework; +namespace LibraryTests; + + +public class FullHealthTest +{ + [SetUp] + public void Setup() + { + } + + [Test] + public void FullHealthCorrectUse() + { + FullHealth fullHealthItem = new FullHealth(); + Charizard charizard = new Charizard(); + charizard.CurrentState = State.Asleep; + fullHealthItem.Use(charizard); + Assert.That(charizard.CurrentState.Equals(null)); + } + + +} \ No newline at end of file diff --git a/test/LibraryTests/ReviveTest.cs b/test/LibraryTests/ReviveTest.cs new file mode 100644 index 0000000..78f7ed5 --- /dev/null +++ b/test/LibraryTests/ReviveTest.cs @@ -0,0 +1,24 @@ +using Library; +using NUnit.Framework; +namespace LibraryTests; + + +public class ReviveTest +{ + [SetUp] + public void Setup() + { + } + + [Test] + public void ReviveCorrectUse() + { + Revive ReviveItem = new Revive(); + Charizard charizard = new Charizard(); + charizard.TakeDamage(1000000); + ReviveItem.Use(charizard); + Assert.That(charizard.CurrentLife.Equals(180)); + } + + +} \ No newline at end of file diff --git a/test/LibraryTests/SuperPotionTest.cs b/test/LibraryTests/SuperPotionTest.cs new file mode 100644 index 0000000..94efde9 --- /dev/null +++ b/test/LibraryTests/SuperPotionTest.cs @@ -0,0 +1,24 @@ +using Library; +using NUnit.Framework; +namespace LibraryTests; + + +public class SuperPotionTest +{ + [SetUp] + public void Setup() + { + } + + [Test] + public void SuperPotionCorrectUse() + { + SuperPotion SuperPotionItem = new SuperPotion(); + Charizard charizard = new Charizard(); + charizard.TakeDamage(60); + SuperPotionItem.Use(charizard); + Assert.That(charizard.CurrentLife.Equals(350)); + } + + +} \ No newline at end of file