Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MSTEST0029 (Public method should be test method) false positive on public Dispose #4660

Open
Youssef1313 opened this issue Jan 15, 2025 · 0 comments

Comments

@Youssef1313
Copy link
Member

Youssef1313 commented Jan 15, 2025

Having a TestClass that implements IDisposable and implement Dispose method implicitly will trigger MSTEST0029

	[TestClass]
	public class TestClass1 : IDisposable
	{
		[TestMethod]
		public void TestMethod1()
		{
		}

		public void Dispose() { }
	}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant