Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"request": "launch",
"preLaunchTask": "build",
// If you have changed target frameworks, make sure to update the program path.
"program": "${workspaceFolder}/FollowingFileStream.ConsoleTestTool/bin/Debug/netcoreapp2.2/FollowingFileStream.dll",
"program": "${workspaceFolder}/FollowingFileStream.ConsoleTestTool/bin/Debug/netcoreapp2.2/FollowingFileStream.ConsoleTestTool.dll",
"args": [],
"cwd": "${workspaceFolder}",
// For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console
Expand Down
2 changes: 1 addition & 1 deletion .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"type": "process",
"args": [
"build",
"${workspaceFolder}/FollowingFileStream/FollowingFileStream.csproj",
"${workspaceFolder}/All.sln",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary"
],
Expand Down
14 changes: 13 additions & 1 deletion FollowingFileStream.Tests/FollowingFileStreamTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,19 @@ public void FFS_Caps()
Assert.IsTrue(ffs.CanRead);
Assert.IsFalse(ffs.CanWrite);
Assert.IsTrue(ffs.CanSeek);
Assert.IsFalse(ffs.CanTimeout);
}
}

[DataTestMethod]
[DataRow(false)]
[DataRow(true)]
[TestMethod]
public void FFS_Properties(bool async)
{
using (var ffs = new FollowingFileStream(inputFilePath, 4*1096, async))
{
Assert.AreEqual(inputFilePath, ffs.Name);
Assert.AreEqual(async, ffs.IsAsync);
}
}

Expand Down
Loading