testfx icon indicating copy to clipboard operation
testfx copied to clipboard

MSTest framework and adapter

Results 321 testfx issues
Sort by recently updated
recently updated
newest added

## Describe the bug Using a nested type like this in a DataRow: ``` object obj = new object[] { (byte)0, new object[] { (short)597, (short)492 }, new object[0], (byte)0,...

Type: Bug
Type: Feature
Area: Parameterized tests

During the command line validation here https://github.com/microsoft/testfx/blob/main/src/Platform/Microsoft.Testing.Platform/CommandLine/CommandLineHandler.cs#L55 we're "getting" the options more than one time and we don't own all the command line implementations. This means that we could allocate...

Area: Performance
Area: Testing Platform

## Describe the bug ## Steps To Reproduce Minimal CSPROJ: ```xml net472 false true ``` Minimal code: ```csharp namespace ReproMsTestBug { using Microsoft.VisualStudio.TestTools.UnitTesting; [TestClass] public class ReproDataRowBug { [DataRow(null)] [TestMethod]...

Type: Bug

## Summary I want to be able to run tests inside a browser-hosted WASM environment. That environment behaves significantly differently from other .NET environments, so it's vital to test thoroughly,...

Type: Discussion
Type: Feature
Area: Testing Platform

Enabled by default: false Default severity: Info Title: Prefer TestCleanup methods over Dispose/DisposeAsync Flags any usage of `Dispose` or `DisposeAsync` on classes marked with `[TestClass]`.

Type: Feature
Area: Analyzers

_Originally posted by @dotMorten in:_ ## Summary One of my biggest griefs with MSTest is I can't test if my stuff works right in an AoT build. Try building your...

Type: Feature
Area: Native AOT

Enabled by default: true Default severity: Info Title: Do not negate boolean assertions Flags cases like `Assert.IsTrue(!condition)` and `Assert.IsFalse(!condition)` and suggest to use the opposite assertion API.

Type: Feature
Area: Analyzers

## Summary Enabled by default: false Default severity: info Title: Prefer TestInitialize methods over constructors This rule flags any constructor of a class marked with `[TestClass]` (or descendant) and suggest...

Type: Feature
Area: Analyzers

## Summary Assembly/Class initialize methods accept a `TestContext` instance as parameter. It's possible that some developers store this context in a field/property and then use this static instance in TestInitialize/TestCleanup,...

Type: Feature
Area: Analyzers

## Summary The standard assertions library methods such as `AreEqual` and `AreSame` expect the first argument to be the expected value and the second argument to be the actual value....

Type: Feature
Area: Analyzers