Skip to content

Commit

Permalink
chore: Switch all [DataTestMethod] to [TestMethod] (#1083)
Browse files Browse the repository at this point in the history
This commit replaces all references to [DataTestMethod] with [TestMethod]

Adresses #1074. Supersedes #1075 due to CI issues.

Co-authored-by: Youssef1313 <[email protected]>
Co-authored-by: Bill Dengler <[email protected]>
  • Loading branch information
3 people authored Dec 26, 2024
1 parent 92d8406 commit 2ae13f6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions src/ActionsTests/Actions/CaptureActionTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public void SetLiveModeDataContext_NoopsIfElementAlreadyHasComparableDataContext
Assert.AreSame(_mockDataContext, _mockElementContext.DataContext);
}

[DataTestMethod]
[TestMethod]
// force == true should force a TreeWalker evaluation, even with an existing similar DataContext
[DataRow(true, false, DataContextMode.Live, TreeViewMode.Raw)]
// An element with a null DataContext should force a TreeWalker evaluation
Expand Down Expand Up @@ -127,7 +127,7 @@ public void SetLiveModeDataContext_UsesTreeWalkerForLiveToCreateNewDataContext(
}
}

[DataTestMethod]
[TestMethod]
// Matching combinations of mode/treemode should result in reloading being skipped
[DataRow(DataContextMode.Test, TreeViewMode.Raw, DataContextMode.Test, TreeViewMode.Raw)]
[DataRow(DataContextMode.Test, TreeViewMode.Control, DataContextMode.Test, TreeViewMode.Control)]
Expand All @@ -150,7 +150,7 @@ public void SetTestModeDataContext_NoopsIfElementDoesNotNeedTestContextUpdate(Da
}
}

[DataTestMethod]
[TestMethod]
// force == true should force a TreeWalker evaluation, even with an existing similar DataContext
[DataRow(true, false, DataContextMode.Test, TreeViewMode.Raw)]
// An element with a null DataContext should force a TreeWalker evaluation
Expand Down Expand Up @@ -206,7 +206,7 @@ public void SetTestModeDataContext_ForTestDataContextMode_UsesTreeWalkerForTestT
}
}

[DataTestMethod]
[TestMethod]
// force == true should force a TreeWalker evaluation, even with an existing similar DataContext
[DataRow(true, false, DataContextMode.Test, TreeViewMode.Raw)]
// An element with a null DataContext should force a TreeWalker evaluation
Expand Down
14 changes: 7 additions & 7 deletions src/AutomationTests/AutomationIntegrationTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public void Scan_Integration_InvalidProcessId()
ScanIntegrationCore(sync: true, testAppPath: null, expectedErrorCount: 0, processId: BogusProcessId);
}

[DataTestMethod]
[TestMethod]
[DataRow(true)]
[DataRow(false)]
public void Scan_Integration_WildlifeManager(bool sync)
Expand All @@ -101,7 +101,7 @@ public void Scan_Integration_WildlifeManager(bool sync)
});
}

[DataTestMethod]
[TestMethod]
[DataRow(true)]
[DataRow(false)]
public void Scan_Integration_WildlifeManager_ValidRoot(bool sync)
Expand All @@ -120,7 +120,7 @@ static ScanOptions makeScopedScanOptions(int _)
});
}

[DataTestMethod]
[TestMethod]
[DataRow(true)]
[DataRow(false)]
public void Scan_Integration_WildlifeManager_InvalidRoot(bool sync)
Expand All @@ -143,7 +143,7 @@ public void Scan_Integration_Win32ControlSampler(bool sync)
});
}

[DataTestMethod]
[TestMethod]
[DataRow(true)]
[DataRow(false)]
public void Scan_Integration_WindowsFormsControlSampler(bool sync)
Expand All @@ -154,7 +154,7 @@ public void Scan_Integration_WindowsFormsControlSampler(bool sync)
});
}

[DataTestMethod]
[TestMethod]
[DataRow(true)]
[DataRow(false)]
public void Scan_Integration_WindowsFormsMultiWindowSample(bool sync)
Expand All @@ -165,7 +165,7 @@ public void Scan_Integration_WindowsFormsMultiWindowSample(bool sync)
});
}

[DataTestMethod]
[TestMethod]
[DataRow(true)]
[DataRow(false)]
public void Scan_Integration_WpfControlSampler(bool sync)
Expand All @@ -176,7 +176,7 @@ public void Scan_Integration_WpfControlSampler(bool sync)
});
}

[DataTestMethod]
[TestMethod]
[DataRow(true)]
[DataRow(false)]
public void Scan_Integration_WebViewSample(bool sync)
Expand Down

0 comments on commit 2ae13f6

Please sign in to comment.