//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test void printUnrecognizedClassifiers() throws Exception //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: internal virtual void PrintUnrecognizedClassifiers() { string[] args = new string[] { "logs", "tx", "invalid" }; using (RealOutsideWorld outsideWorld = new RealOutsideWorld()) { DiagnosticsReportCommand diagnosticsReportCommand = new DiagnosticsReportCommand(_homeDir, _configDir, outsideWorld); IncorrectUsage incorrectUsage = assertThrows(typeof(IncorrectUsage), () => diagnosticsReportCommand.execute(args)); assertEquals("Unknown classifier: invalid", incorrectUsage.Message); } }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test void allHasToBeOnlyClassifier() throws Exception //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: internal virtual void AllHasToBeOnlyClassifier() { string[] args = new string[] { "all", "logs", "tx" }; using (RealOutsideWorld outsideWorld = new RealOutsideWorld()) { DiagnosticsReportCommand diagnosticsReportCommand = new DiagnosticsReportCommand(_homeDir, _configDir, outsideWorld); IncorrectUsage incorrectUsage = assertThrows(typeof(IncorrectUsage), () => diagnosticsReportCommand.execute(args)); assertEquals("If you specify 'all' this has to be the only classifier. Found ['logs','tx'] as well.", incorrectUsage.Message); } }