//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: private void shouldReadTextFromInputStreamWithBom(Magic bom, String text) throws java.io.IOException private void ShouldReadTextFromInputStreamWithBom(Magic bom, string text) { AssertReadTextAsInputStream(WriteToFile(bom.Bytes(), text, bom.Encoding()), text); }