Rename split-loop-with-lambda to slice-with-lambda
The refactoring is now published as Slice on sammancoaching.org: https://sammancoaching.org/refactorings/slice.html - git mv ideas/split-loop-with-lambda -> ideas/slice-with-lambda - rename learning-hour file and update frontmatter name - update paths in tools/rehearse scripts and report title - update prose: 'Split Loop with Lambda' -> 'Slice with Lambda' in learning hour, exercise READMEs, storyboard, solution comments - link the published Slice refactoring from the pattern draft
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
using IceCreamBuyers;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
namespace IceCreamBuyers.Tests
|
||||
{
|
||||
[TestClass]
|
||||
public class BuyersTests
|
||||
{
|
||||
[TestMethod]
|
||||
public void ShoppingListTotal()
|
||||
{
|
||||
// Anke: 2 flavours x 2 scoops x base prices (3 + 2) = 10.
|
||||
// Red or flaky — why? (PriceList adds random surge pricing;
|
||||
// it stands for the external pricing service.)
|
||||
var buyers = new Buyers();
|
||||
Assert.AreEqual(10, buyers.ShoppingListTotal("Anke"));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user