Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Nov 20, 2012 12:40 PM by ignatandrei
Member
23 Points
133 Posts
Nov 20, 2012 09:09 AM|LINK
Hi,
what below is the [TestMethod] used for?
[TestMethod] public async Task AsyncTest() {
All-Star
137692 Points
22152 Posts
Moderator
MVP
Nov 20, 2012 09:12 AM|LINK
in order to an Test framework( MS Test, NUnit, others) to run this method.
Nov 20, 2012 09:15 AM|LINK
sorry can you explain that a bit more I did not fully understand what you said,
thanks,
Nov 20, 2012 09:55 AM|LINK
Automated tests are test that runs... well, automatically, to verify some features of the software.
search for a MSTEst tutorial or NUnit Tutorial
Nov 20, 2012 10:16 AM|LINK
Hi there thanks. I know they are unit tests. But I want to know what the specific syntax [TestMethod] is above the method?
Thanks.
Nov 20, 2012 12:40 PM|LINK
it's an attribute
http://msdn.microsoft.com/en-us/library/microsoft.visualstudio.testtools.unittesting.testmethodattribute(v=vs.80).aspx
damon2012
Member
23 Points
133 Posts
Whats this syntax
Nov 20, 2012 09:09 AM|LINK
Hi,
what below is the [TestMethod] used for?
ignatandrei
All-Star
137692 Points
22152 Posts
Moderator
MVP
Re: Whats this syntax
Nov 20, 2012 09:12 AM|LINK
in order to an Test framework( MS Test, NUnit, others) to run this method.
damon2012
Member
23 Points
133 Posts
Re: Whats this syntax
Nov 20, 2012 09:15 AM|LINK
Hi,
sorry can you explain that a bit more I did not fully understand what you said,
thanks,
ignatandrei
All-Star
137692 Points
22152 Posts
Moderator
MVP
Re: Whats this syntax
Nov 20, 2012 09:55 AM|LINK
Automated tests are test that runs... well, automatically, to verify some features of the software.
search for a MSTEst tutorial or NUnit Tutorial
damon2012
Member
23 Points
133 Posts
Re: Whats this syntax
Nov 20, 2012 10:16 AM|LINK
Hi there thanks. I know they are unit tests. But I want to know what the specific syntax [TestMethod] is above the method?
Thanks.
ignatandrei
All-Star
137692 Points
22152 Posts
Moderator
MVP
Re: Whats this syntax
Nov 20, 2012 12:40 PM|LINK
it's an attribute
http://msdn.microsoft.com/en-us/library/microsoft.visualstudio.testtools.unittesting.testmethodattribute(v=vs.80).aspx