public void TestGetTotalFunding_HasWhitespacePersonalFunding() { string binationalCommission = null; string personal = " "; string evGovt = null; Other other = new Other("name", "amount"); USGovernmentFunding usGovt = null; InternationalFunding international = new InternationalFunding(null, null, null, null, null, null); var otherFunds = new OtherFunds( exchangeVisitorGovernment: evGovt, binationalCommission: binationalCommission, personal: personal, usGovernmentFunding: usGovt, internationalFunding: international, other: other); Assert.AreEqual(0.0m, otherFunds.GetTotalFunding()); }
public void TestGetTotalFunding_HasUSGovernmentFunding() { string binationalCommission = null; string personal = String.Empty; string evGovt = null; Other other = null; USGovernmentFunding usGovt = new USGovernmentFunding(null, null, "1.0", null, null, null); InternationalFunding international = null; var otherFunds = new OtherFunds( exchangeVisitorGovernment: evGovt, binationalCommission: binationalCommission, personal: personal, usGovernmentFunding: usGovt, internationalFunding: international, other: other); Assert.AreEqual(1.0m, otherFunds.GetTotalFunding()); }
public void TestGetTotalFunding_AllFundingValuesNull() { string binationalCommission = null; string personal = null; string evGovt = null; Other other = null; USGovernmentFunding usGovt = null; InternationalFunding international = null; var otherFunds = new OtherFunds( exchangeVisitorGovernment: evGovt, binationalCommission: binationalCommission, personal: personal, usGovernmentFunding: usGovt, internationalFunding: international, other: other); Assert.AreEqual(0.0m, otherFunds.GetTotalFunding()); }