public void it_returns_the_contents_of_a_file_as_a_string_when_provided_with_a_vaild_path() { Reader reader = new Reader(); string result = reader.Read( @"Temp/UnityJsonTests/file.txt" ); Assert.AreEqual( file_contents, result ); }
public void it_throws_a_file_not_found_exception_if_the_file_does_not_exist() { Reader reader = new Reader(); Assert.Throws<Exceptions.FileNotFoundException>( delegate { string result = reader.Read( @"Temp/UnityJsonTests/not_a_file.txt" ); } ); }