コード例 #1
0
    public void InvalidCredit()
    {
        var validation = new CreditValidation(100);

        Assert.Throws <InsuficientCreditException>(() => validation.ValidateOrder(99));
    }
コード例 #2
0
    public void ValidCredit()
    {
        var validation = new CreditValidation(100);

        validation.ValidateOrder(100);
    }