Exemple #1
0
 public ExchangeEdge(CurrencyVertex start, CurrencyVertex finish, double weight, int chargeType, double charge)
 {
     StartVertex  = start;
     FinishVertex = finish;
     FeeType      = chargeType;
     Charge       = charge;
     Weight       = weight;
 }
Exemple #2
0
        public void ToStringTest()
        {
            // arrange
            CurrencyVertex curr = new CurrencyVertex("PLN");
            // act
            string symbol = curr.ToString();

            // assert
            Assert.AreEqual(curr.Symbol, symbol);
        }
Exemple #3
0
        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);
        }