Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2sharp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAimeast <lixd3389@gmail.com>2013-10-27 12:43:33 +0400
committernulltoken <emeric.fermas@gmail.com>2013-10-27 12:57:51 +0400
commitda320296382e9695e57caf648d4af291db33de36 (patch)
treec7558d97fe6d02fb86fbcbfa953aa607a666e94a /LibGit2Sharp.Tests
parent36945a94de6545d8e301c4b5921baa3b1d76aec7 (diff)
Rename Blob.ContentStream() as Blob.GetContentStream()
Diffstat (limited to 'LibGit2Sharp.Tests')
-rw-r--r--LibGit2Sharp.Tests/BlobFixture.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/LibGit2Sharp.Tests/BlobFixture.cs b/LibGit2Sharp.Tests/BlobFixture.cs
index 76b24e31..f0aaa262 100644
--- a/LibGit2Sharp.Tests/BlobFixture.cs
+++ b/LibGit2Sharp.Tests/BlobFixture.cs
@@ -122,7 +122,7 @@ namespace LibGit2Sharp.Tests
{
var blob = repo.Lookup<Blob>("a8233120f6ad708f843d861ce2b7228ec4e3dec6");
- using (var tr = new StreamReader(blob.ContentStream(), Encoding.UTF8))
+ using (var tr = new StreamReader(blob.GetContentStream(), Encoding.UTF8))
{
string content = tr.ReadToEnd();
Assert.Equal("hey there\n", content);
@@ -137,7 +137,7 @@ namespace LibGit2Sharp.Tests
{
var blob = repo.Lookup<Blob>("a8233120f6ad708f843d861ce2b7228ec4e3dec6");
- using (var tr = new StreamReader(blob.ContentStream(new FilteringOptions("foo.txt")), Encoding.UTF8))
+ using (var tr = new StreamReader(blob.GetContentStream(new FilteringOptions("foo.txt")), Encoding.UTF8))
{
string content = tr.ReadToEnd();
@@ -167,7 +167,7 @@ namespace LibGit2Sharp.Tests
{
Blob blob = repo.ObjectDatabase.CreateBlob(stream);
- using (var filtered = blob.ContentStream(new FilteringOptions("foo.txt")))
+ using (var filtered = blob.GetContentStream(new FilteringOptions("foo.txt")))
{
Assert.True(StreamEquals(stream, filtered));
}
@@ -198,7 +198,7 @@ namespace LibGit2Sharp.Tests
var blob = repo.Lookup<Blob>(entry.Id.Sha);
- using (Stream stream = blob.ContentStream())
+ using (Stream stream = blob.GetContentStream())
using (Stream file = File.OpenWrite(Path.Combine(repo.Info.WorkingDirectory, "small.fromblob.txt")))
{
CopyStream(stream, file);