public void TestGetState() { //takes obj and converts to string string pString = p.GetState(); Console.WriteLine(pString); }
public void TestGetState() { string xml = props1.GetState(); Console.WriteLine(xml); Assert.NotNull(xml); }
public void TestGetState() { string output = p.GetState(); Assert.True(output.Contains("This is a test")); Console.WriteLine(output); }
public void TestGetState() { string xml = p.GetState(); Assert.Greater(xml.Length, 0); Assert.IsTrue(xml.Contains(p.description)); Console.WriteLine(xml); }
public void TestPropsRetrieve() { ProductDB db = new ProductDB(dataSource); ProductProps props = (ProductProps)db.Retrieve(2); Assert.AreEqual(props.productID, 2); Console.WriteLine(props.GetState()); }
public void TestSetState() { string xml = p.GetState(); p1.SetState(xml); Assert.True(xml == p1.GetState()); }
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); }
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); }
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); }
public void TestGetState() { string pString = testp.GetState(); Console.WriteLine(pString); }
public void GetStateTest() { string output = props.GetState(); Console.WriteLine(output); }