Created
May 7, 2013 22:51
-
-
Save nigel-sampson/5536817 to your computer and use it in GitHub Desktop.
Insert IList<T>
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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