Esempio n. 1
0
        public void testFormatted()
        {
            StObject offer = new StObject();

            offer.Add(UInt16.LedgerEntryType, LedgerEntryType.Offer.AsInteger);
            offer.Add(Amount.TakerGets, "1.0");
            offer.Add(Amount.TakerPays, "2.0");

            Offer casted = (Offer)StObject.Formatted(offer);

            Assert.AreEqual(casted.AskQuality.ToPlainString(), "2");
        }