Skip to content

Commit 435dd9f

Browse files
authored
Merge pull request #7 from manandre/api-doc
Add XML doc as API documentation
2 parents 4fc1524 + b59435c commit 435dd9f

5 files changed

Lines changed: 346 additions & 5 deletions

File tree

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"request": "launch",
1111
"preLaunchTask": "build",
1212
// If you have changed target frameworks, make sure to update the program path.
13-
"program": "${workspaceFolder}/FollowingFileStream.ConsoleTestTool/bin/Debug/netcoreapp2.2/FollowingFileStream.dll",
13+
"program": "${workspaceFolder}/FollowingFileStream.ConsoleTestTool/bin/Debug/netcoreapp2.2/FollowingFileStream.ConsoleTestTool.dll",
1414
"args": [],
1515
"cwd": "${workspaceFolder}",
1616
// For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console

.vscode/tasks.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"type": "process",
88
"args": [
99
"build",
10-
"${workspaceFolder}/FollowingFileStream/FollowingFileStream.csproj",
10+
"${workspaceFolder}/All.sln",
1111
"/property:GenerateFullPaths=true",
1212
"/consoleloggerparameters:NoSummary"
1313
],

FollowingFileStream.Tests/FollowingFileStreamTest.cs

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,19 @@ public void FFS_Caps()
6767
Assert.IsTrue(ffs.CanRead);
6868
Assert.IsFalse(ffs.CanWrite);
6969
Assert.IsTrue(ffs.CanSeek);
70-
Assert.IsFalse(ffs.CanTimeout);
70+
}
71+
}
72+
73+
[DataTestMethod]
74+
[DataRow(false)]
75+
[DataRow(true)]
76+
[TestMethod]
77+
public void FFS_Properties(bool async)
78+
{
79+
using (var ffs = new FollowingFileStream(inputFilePath, 4*1096, async))
80+
{
81+
Assert.AreEqual(inputFilePath, ffs.Name);
82+
Assert.AreEqual(async, ffs.IsAsync);
7183
}
7284
}
7385

0 commit comments

Comments
 (0)