|
-
February 22nd, 2011, 11:28 AM
#3
Re: Unit test serialization error
The error message is very clear:
Test method marked with the [TestMethod] attribute must be non-static, public, does not return a value and should not take any parameter. for example: public void Test.Class1.Test().
It's telling you that any method marked with the [TestMethod] attribute must be a public static void method.
Your method of "public static Stream Serialize( ... )" that you've marked with the [TestMethod] attribute isn't a public static void method. If you need this method signature, remove the [TestMethod] attribute (but don't expect the method to be run as part of the test suite).
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|