Exemplo n.º 1
0
    public void check_get_campaigns_with_not_empty_list(String campaign)
    {
        PoolManager poolManager = new PoolManager();

        String[] sCamp        = campaign.Split(" ");
        Campaign campaignTemp = new Campaign(sCamp[1], sCamp[2],
                                             Double.Parse(sCamp[3]), Double.Parse(sCamp[4]), Double.Parse(sCamp[5]));

        poolManager.getCampaigns().Add(campaignTemp);
        Assert.Equal(1, (int)campaignController.getCampaigns(poolManager).Count);
    }