This commit is contained in:
@ -19,4 +19,13 @@ public class StreamTest
|
||||
global::Stream.Stream.MyReplace(filePath, toReplace, replace);
|
||||
Assert.Equal("Cfstvraimfntmagnifiquf\n", File.ReadAllText(filePath));
|
||||
}
|
||||
|
||||
[Theory]
|
||||
[InlineData("DeleteLineTestFile.txt", 2)]
|
||||
|
||||
public void DeleteLineTest(string filePath, int n)
|
||||
{
|
||||
global::Stream.Stream.DeleteLines(filePath, n);
|
||||
Assert.Equal("1\n3\n5\n7\n9\n11\n", File.ReadAllText(filePath));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user