//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldWriteResults() public virtual void shouldWriteResults() { //JAVA TO C# CONVERTER WARNING: Java wildcard generics have no direct equivalent in .NET: //ORIGINAL LINE: java.util.List<ModelElementValidator<?>> validators = new java.util.ArrayList<ModelElementValidator<?>>(); IList <ModelElementValidator <object> > validators = new List <ModelElementValidator <object> >(); validators.Add(new IllegalBirdValidator("tweety")); ValidationResults results = modelInstance.validate(validators); StringWriter stringWriter = new StringWriter(); results.write(stringWriter, new TestResultFormatter()); assertThat(stringWriter.ToString()).isEqualTo("tweety\n\tERROR (20): Bird tweety is illegal\n"); }