Skip to content
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

Extensions 1 -> 3 done #65

Open
wants to merge 30 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
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
Prev Previous commit
Next Next commit
testing
Thomas Aleksander Flier committed Aug 19, 2024
commit ea664f70e6cbbafc284243a42810623b2c775bac
5 changes: 4 additions & 1 deletion exercise.main/Basket.cs
Original file line number Diff line number Diff line change
@@ -33,8 +33,11 @@ public bool addItem(string itemType, string variant)
Console.WriteLine("No such item...");
return false;
}
}

//throw new NotImplementedException();
public void removeItem(string v)
{
throw new NotImplementedException();
}
}
}
10 changes: 9 additions & 1 deletion exercise.tests/CoreTests.cs
Original file line number Diff line number Diff line change
@@ -38,7 +38,15 @@ public void addItemTest()

}

[Test]

public void removeItemTest()
{
Basket basket = new Basket();
basket.removeItem("Onion");



Assert.That(basket.yourBasket.Count == 0);

}
}