Ejemplo n.º 1
0
    public void UnlabelledPocketNotUsed()
    {
        var selection = new LabelSelectionViewModel(Money.Parse("0.4"));

        var pockets = new List <Pocket>();

        pockets.AddPocket(0.5M, out var pocket1, CoinPocketHelper.UnlabelledFundsText);
        pockets.AddPocket(0.5M, out var pocket2, "Dan");

        selection.Reset(pockets.ToArray());

        var output = selection.GetSafeToUsePockets();

        Assert.DoesNotContain(pocket1, output);
        Assert.Contains(pocket2, output);
    }