public void TM_OutstandingTransactions_SerializeKeyValueToStringTest3() { OutstandingTransactions_Accessor target = new OutstandingTransactions_Accessor(); string key = "id"; OutstandingTransactions.OutstandingTransactionsValue value = null; string expected = "id"; string actual; actual = target.SerializeToString(key, value, true); Assert.AreEqual(expected, actual); }
public void TM_OutstandingTransactions_SerializeKeyValueToStringTest1() { OutstandingTransactions_Accessor target = new OutstandingTransactions_Accessor(); string key = "id"; OutstandingTransactions.OutstandingTransactionsValue value = new OutstandingTransactions.OutstandingTransactionsValue( OutstandingTransactions.OutstandingTransactionsValue.TransactionType.Commit, new List <string> { "rm1", "rm2" }); string expected = "id,0,rm1,rm2"; string actual; actual = target.SerializeToString(key, value); Assert.AreEqual(expected, actual); }
public void TM_OutstandingTransactions_SerializeKeyValueToStringTest1() { OutstandingTransactions_Accessor target = new OutstandingTransactions_Accessor(); string key = "id"; OutstandingTransactions.OutstandingTransactionsValue value = new OutstandingTransactions.OutstandingTransactionsValue( OutstandingTransactions.OutstandingTransactionsValue.TransactionType.Commit, new List<string> { "rm1", "rm2" }); string expected = "id,0,rm1,rm2"; string actual; actual = target.SerializeToString(key, value); Assert.AreEqual(expected, actual); }