Ejemplo n.º 1
0
        public void TestDefaultConstructor()
        {
            TradableProperty tradableProperty = new TradableProperty();

            Assert.AreEqual("Property", tradableProperty.getName());
            Assert.AreEqual(200m, tradableProperty.getPrice());
            Assert.AreEqual(50, tradableProperty.getRent());
            Assert.AreEqual("Property", tradableProperty.ToString().Substring(0, 8));
            Assert.IsTrue(tradableProperty.availableForPurchase());
        }