}
}
- [Test]
- public void RowEditTest()
- {
- DeleteRowTest ();
- EditModeTest ();
- ParentRowTest ();
- }
-
- private void DeleteRowTest ()
+ [Test]
+ public void DeleteRowTest ()
{
DataRow newRow;
table.AcceptChanges ();
AssertEquals ("#A06", "Name 1", (table.Rows [0]) [1]);
try {
- Console.WriteLine (rc [2]);
+ object o = rc [2];
Fail ("#A07");
}
catch (Exception e) {
}
}
- private void EditModeTest ()
+ [Test]
+ public void EditModeTest ()
{
try {
//Clear all existing values from table
AssertEquals ("#A12", "LName", row [2, DataRowVersion.Current]);
try {
- Console.WriteLine (row [1, DataRowVersion.Original]);
- Console.WriteLine (row [1, DataRowVersion.Proposed]);
+ object o = row [1, DataRowVersion.Original];
+ o = row [1, DataRowVersion.Proposed];
Fail ("#A13");
}
catch (Exception e) {
AssertEquals ("#A18", "LName", row [2, DataRowVersion.Current]);
try {
- Console.WriteLine (row [1, DataRowVersion.Proposed]);
+ object o = row [1, DataRowVersion.Proposed];
Fail ("#A19");
}
catch (Exception e) {
AssertEquals ("#A33", "My LName", row [2, DataRowVersion.Current]);
try {
- Console.WriteLine (row [1, DataRowVersion.Proposed]);
+ object o = row [1, DataRowVersion.Proposed];
Fail ("#A34");
}
catch (Exception e) {
try {
- Console.WriteLine (row [1, DataRowVersion.Proposed]);
+ object o = row [1, DataRowVersion.Proposed];
Fail ("#A42");
}
catch (Exception e) {
}
catch (Exception e){
- Console.WriteLine (e + "" + e.StackTrace);
+// Console.WriteLine (e + "" + e.StackTrace);
}
}
- private void ParentRowTest (){
+ [Test]
+ public void ParentRowTest ()
+ {
//Clear all existing values from table
for (int i = 0; i < table.Rows.Count; i++) {