Skip to content

Instantly share code, notes, and snippets.

@nigel-sampson
Created May 7, 2013 22:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nigel-sampson/5536817 to your computer and use it in GitHub Desktop.
Save nigel-sampson/5536817 to your computer and use it in GitHub Desktop.
Insert IList<T>
[TestMethod]
public async Task CanInsertInterfaces()
{
BlobCache.ApplicationName = "RepoTests";
IList<string> strings = new List<string> { "foo", "bar", "baz" }; // fails
// var = new List<string> { "foo", "bar", "baz" }; // passes
await BlobCache.LocalMachine.InsertObject("strings", strings);
var stored = await BlobCache.LocalMachine.GetOrCreateObject("strings", () => new List<string>());
Assert.AreEqual(strings.Count, stored.Count);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment