Beispiel #1
0
 public virtual void test_of_ioException()
 {
     assertThrows(() => IniFile.of(Files.asCharSource(new File("src/test/resources"), StandardCharsets.UTF_8)), typeof(UncheckedIOException));
 }
Beispiel #2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test(expectedExceptions = IllegalArgumentException.class) public void test_of_invalid_propertyAtStart()
        public virtual void test_of_invalid_propertyAtStart()
        {
            string invalid = "a = x\n";

            IniFile.of(CharSource.wrap(invalid));
        }