Beispiel #1
0
    public void check_is_unique_with_exception_cases(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.Throws <Exception>(() => campaignController.isUnique(sCamp, poolManager));
    }