to test against... public void testMyMethod(){ }...and为每个实现(我用@RunWith(Parameterized.class)运行的实现)扩展这个抽象测试类。我还向抽象测试类传递了一些变量来测试接口的实现。
然而,实际上,一些接口返回的对象是其他接口的实现,我希望能够使用该接口的抽象契约类(针对相关变量的...and)来测试此实现
ConsoleApplication1 { private static void Main(string[] args) { var serializer = new DataContractJsonSerializer(pony.GetType());
var example= new MemoryStream(Encoding.UTF8.GetBytes(example.ToCharArray(