public void Inserts_strings_and_timestamp()
 {
     var buffer = new AtsNamedValueBuffer(new Dictionary<string, EntityProperty>());
     var stamp = DateTime.UtcNow;
     buffer.Add("RowKey", "string data");
     buffer.Add("Timestamp", stamp);
     Assert.Equal("string data", buffer["RowKey"]);
     Assert.Equal(stamp, buffer["Timestamp"]);
 }
        public void Indexed_by_name()
        {
            var buffer = new AtsNamedValueBuffer(new Dictionary<string, EntityProperty>());

            Assert.Throws<KeyNotFoundException>(() => buffer["Key"]);
            Assert.Null(buffer.TryGet("Key"));

            Assert.DoesNotThrow(() => buffer.Add("Key", "value"));

            Assert.DoesNotThrow(() => buffer["Key"]);
            Assert.NotNull(buffer.TryGet("Key"));
        }