Add support for loading and merging runtime deps json

This commit is contained in:
Pavel Krymets 2016-03-10 10:12:43 -08:00
parent d95a4f0a5a
commit c10df6b6a5
14 changed files with 411 additions and 54 deletions

View file

@ -4,6 +4,7 @@
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using Microsoft.Extensions.EnvironmentAbstractions;
namespace Microsoft.Extensions.DependencyModel.Tests
@ -74,6 +75,11 @@ namespace Microsoft.Extensions.DependencyModel.Tests
}
return text;
}
public Stream OpenRead(string path)
{
return new MemoryStream(Encoding.UTF8.GetBytes(ReadAllText(path)));
}
}
private class DirectoryMock : IDirectory