Ejemplo n.º 1
0
        public void isRemovedTest()
        {
            string name = baseStockTestName;
            BaseStock stock = new BaseStock(name);
            stock.DeleteStock();

            PrivateObject param0 = new PrivateObject(stock);
            BaseStock_Accessor target = new BaseStock_Accessor(param0);
            bool expected = true;
            bool actual;
            target.isRemoved = expected;
            actual = target.isRemoved;
            Assert.AreEqual(expected, actual, "EWW! Removed object is not marked as removed.");
        }
Ejemplo n.º 2
0
 public void DeleteStockTest()
 {
     string name = baseStockTestName;
     BaseStock target = new BaseStock(name);
     target.DeleteStock();
     Assert.IsFalse(Directory.Exists(appDataPath + "\\" + baseStockTestName), "SHIT! Deleted stock directory still exists.");
 }