public ExchangeEdge(CurrencyVertex start, CurrencyVertex finish, double weight, int chargeType, double charge) { StartVertex = start; FinishVertex = finish; FeeType = chargeType; Charge = charge; Weight = weight; }
public void ToStringTest() { // arrange CurrencyVertex curr = new CurrencyVertex("PLN"); // act string symbol = curr.ToString(); // assert Assert.AreEqual(curr.Symbol, symbol); }
public void DefaultValuesTest() { // arrange CurrencyVertex curr = new CurrencyVertex("PLN"); // assert Assert.AreEqual(curr.MoneyAt, 0); Assert.AreEqual(curr.ArbMoneyAt, 0); Assert.AreEqual(curr.MinDistance, int.MaxValue); Assert.AreEqual(curr.ArbMinDistance, int.MaxValue); }