We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82fdd23 commit 296031bCopy full SHA for 296031b
crates/plugins/csharp/src/plugin.rs
@@ -545,6 +545,18 @@ mod test {
545
assert_eq!(dir, Path::new("dir1/dir2/dir3"))
546
}
547
548
+ #[test]
549
+ fn finds_project_dir_in_zip_cs() {
550
+ init();
551
+
552
+ let temp = TempDir::new().unwrap();
553
+ file_to(&temp, "dir1/dir2/dir3/src/dir4/sample.cs", "");
554
+ let bytes = dir_to_zip(&temp);
555
+ let mut zip = Archive::zip(std::io::Cursor::new(bytes)).unwrap();
556
+ let dir = CSharpPlugin::find_project_dir_in_archive(&mut zip).unwrap();
557
+ assert_eq!(dir, Path::new("dir1/dir2/dir3"))
558
+ }
559
560
#[test]
561
fn no_project_dir_in_zip() {
562
init();
0 commit comments