Exemplo n.º 1
0
        public void Insert_Single_Inserts_Bag()
        {
            ClearDatabase();
            BagDML bagdml   = new BagDML();
            Bag    expected = new Bag(0);

            bagdml.Insert_Single(expected);
            Bag  actual = getMultipleBags()[0];
            bool eql    = expected.Equals(actual);

            Assert.AreEqual(expected, actual);
        }
Exemplo n.º 2
0
        public void Insert_Single_Runs_Without_Errors()
        {
            ClearDatabase();
            BagDML bagdml = new BagDML();
            Bag    bag    = new Bag(0);

            try
            {
                bagdml.Insert_Single(bag);
                Assert.IsTrue(true);
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
                Assert.Fail();
            }
        }