Exemple #1
0
        public void GetString_GivenString_ReturnString()
        {
            var storage = new Storage();
              storage.Store(0, "My Item");

              storage.GetString(0).GetType().Should().Be(typeof(string));
              storage.GetString(0).Should().Be("My Item");
        }
Exemple #2
0
        public void GetString_GivenInt_ReturnsNull()
        {
            var storage = new Storage();
              storage.Store(0, 1);

              storage.GetString(0).Should().Be(null);
        }