Skip to content

Instantly share code, notes, and snippets.

@dgg
Created March 30, 2015 06:07
nmoneys-22
Money[] allocated = 34m.Jpy().Allocate(4, RemainderAllocator.FirstToLast);
Assert.That(allocated, Is.EqualTo(new[] { 9m.Jpy(), 9m.Jpy(), 8m.Jpy(), 8m.Jpy() }));
Money[] allocated = 8.3m.Usd().Allocate(4, RemainderAllocator.LastToFirst);
Asscert.That(allocated, Is.EqualTo(new[] { 2.07m.Usd(), 2.07m.Usd(), 2.08m.Usd(), 2.08m.Usd() }));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment