Exemplo n.º 1
0
        public void TestGetState()
        {
            //takes obj and converts to string
            string pString = p.GetState();

            Console.WriteLine(pString);
        }
Exemplo n.º 2
0
        public void TestGetState()
        {
            string xml = props1.GetState();

            Console.WriteLine(xml);
            Assert.NotNull(xml);
        }
Exemplo n.º 3
0
        public void TestGetState()
        {
            string output = p.GetState();

            Assert.True(output.Contains("This is a test"));
            Console.WriteLine(output);
        }
Exemplo n.º 4
0
        public void TestGetState()
        {
            string xml = p.GetState();

            Assert.Greater(xml.Length, 0);
            Assert.IsTrue(xml.Contains(p.description));
            Console.WriteLine(xml);
        }
Exemplo n.º 5
0
        public void TestPropsRetrieve()
        {
            ProductDB    db    = new ProductDB(dataSource);
            ProductProps props = (ProductProps)db.Retrieve(2);

            Assert.AreEqual(props.productID, 2);
            Console.WriteLine(props.GetState());
        }
Exemplo n.º 6
0
        public void TestSetState()
        {
            string xml = p.GetState();

            p1.SetState(xml);

            Assert.True(xml == p1.GetState());
        }
Exemplo n.º 7
0
        public void SetStateTest()
        {
            ProductProps props2 = new ProductProps();

            props2.SetState(props.GetState());
            Assert.AreEqual(props.ID, props2.ID);
            Assert.AreEqual(props.productCode, props2.productCode);
            Assert.AreEqual(props.description, props2.description);
            Assert.AreEqual(props.unitPrice, props2.unitPrice);
            Assert.AreEqual(props.onHandQuantity, props2.onHandQuantity);
            Assert.AreEqual(props.ConcurrencyID, props2.ConcurrencyID);
        }
Exemplo n.º 8
0
        public void GetStateTest()
        {
            ProductProps props = new ProductProps();

            props.ID             = 1;
            props.productCode    = "G0012";
            props.description    = "Great book for class.";
            props.unitPrice      = 49.99m;
            props.onHandQuantity = 11;
            props.ConcurrencyID  = 4;

            string output = props.GetState();

            Console.WriteLine(output);
        }
Exemplo n.º 9
0
        public void SetStateTest()
        {
            ProductProps props2 = new ProductProps();

            props2.SetState(props.GetState());
            Assert.AreEqual(props.productID, props2.productID);
            Assert.AreEqual(props.productCode, props2.productCode);
            Assert.AreEqual(props.description, props2.description);
            Assert.AreEqual(props.unitPrice, props2.unitPrice);
            Assert.AreEqual(props.onHandQuantity, props2.onHandQuantity);
            Assert.AreEqual(props.ConcurrencyID, props2.ConcurrencyID);
            string output1 = props.GetState();
            string output2 = props2.GetState();

            Console.WriteLine(output1);
            Console.WriteLine(output2);
        }
Exemplo n.º 10
0
        public void TestGetState()
        {
            string pString = testp.GetState();

            Console.WriteLine(pString);
        }
        public void GetStateTest()
        {
            string output = props.GetState();

            Console.WriteLine(output);
        }