2013年6月27日

TestClass必须是public的

摘要: 运行一个测试类遇到一下问题: namespace TestSample.Sample { [TestClass] class CynthiaTest { [TestMethod] public void UITestSample() { DemoAPIs.... 阅读全文

posted @ 2013-06-27 16:59 CynthiaHuo 阅读(565) 评论(0) 推荐(0)

VS2012如何显示行号

摘要: Tools-Options-Text Editor-All Languages –General – Display 阅读全文

posted @ 2013-06-27 16:24 CynthiaHuo 阅读(6242) 评论(0) 推荐(2)

Error: member names cannot be the same as their enclosing type

摘要: 在编译的时候会遇到如下问题:member names cannot be the same as their enclosing type 原因:方法名和类名不能一样,如果一样就是一个构造函数。而构造函数不能有返回值。 构造函数:只写public 没有void 阅读全文

posted @ 2013-06-27 16:18 CynthiaHuo 阅读(2504) 评论(0) 推荐(0)

导航