public void TestHledej()
        {
            DrazebniDatabaze d     = new DrazebniDatabaze();
            DateTime         datum = DateTime.Now;
            Auto             a     = new Auto("bmw", Skupina.A, datum, 650, 3);

            d.Pridej(a);

            Assert.AreEqual(a, d.HledejPodleJmena("bmw"));
        }
        public void TestPridej()
        {
            DrazebniDatabaze d     = new DrazebniDatabaze();
            DateTime         datum = DateTime.Now;
            Auto             a     = new Auto("bmw", Skupina.A, datum, 650, 3);

            d.Pridej(a);

            if (!d.list.Contains(a))
            {
                Assert.Fail();
            }
            if (d.list.Count != 1)
            {
                Assert.Fail();
            }
        }