Пример #1
0
 public void Store_AnonymousType_ReturnsAnonymousType()
 {
     var storage = new Storage();
       var item = new { name = "Starbuck", rank = "Lieutennant", serialNumber = 1337 };
       storage.Store(1, item);
       storage.Retrieve(1).Should().Be(item);
 }
Пример #2
0
 public void Store_Null_ReturnsNull()
 {
     var storage = new Storage();
       storage.Store(1, null);
       storage.Retrieve(1).Should().Be(null);
 }
Пример #3
0
 public void Store_Int_ReturnsInt()
 {
     var storage = new Storage();
       storage.Store(1, 1);
       storage.Retrieve(1).Should().Be(1);
 }