예제 #1
0
        public void TestMethod1()
        {
            Product p = new Product();

            p.Title       = "Test product";
            p.Description = "Test description";
            p.Color       = "Test color";
            p.Size        = 24;
            p.Price       = 24;
            p.Stock       = 24;
            MySQLDBManager manager = new MySQLDBManager();

            manager.Create(p);
            Product p1 = manager.SelectProduct(p);

            Assert.AreEqual(p.Title, p1.Title);
            Assert.AreEqual(p.Description, p1.Description);
            Assert.AreEqual(p.Color, p1.Color);
            Assert.AreEqual(p.Size, p1.Size);
            Assert.AreEqual(p.Price, p1.Price);
            Assert.AreEqual(p.Stock, p1.Stock);
        }