public void PropertiesToCloudSearchFields()
        {
            var transform = new DefaultFieldNameTransform();

            Assert.AreEqual("id", transform.ToCloudSearchField("Id"));
            Assert.AreEqual("data", transform.ToCloudSearchField("Data"));
            Assert.AreEqual("actor", transform.ToCloudSearchField("Actor"));
            Assert.AreEqual("text_relevance", transform.ToCloudSearchField("TextRelevance"));
            Assert.AreEqual("some_html", transform.ToCloudSearchField("SomeHTML"));
            Assert.AreEqual("html_stuff", transform.ToCloudSearchField("HTMLStuff"));
        }
        public void CloudSearchFieldsToProperties()
        {
            var transform = new DefaultFieldNameTransform();

            Assert.AreEqual("Id", transform.ToProperty(typeof(TestProperties), "id").Name);
            Assert.AreEqual("Data", transform.ToProperty(typeof(TestProperties), "data").Name);
            Assert.AreEqual("Actor", transform.ToProperty(typeof(TestProperties), "actor").Name);
            Assert.AreEqual("TextRelevance", transform.ToProperty(typeof(TestProperties), "text_relevance").Name);
            Assert.AreEqual("SomeHTML", transform.ToProperty(typeof(TestProperties), "some_html").Name);
            Assert.AreEqual("HTMLStuff", transform.ToProperty(typeof(TestProperties), "html_stuff").Name);

            //not present
            Assert.IsNull(transform.ToProperty(typeof(TestProperties), "this_field_does_not_exist"));
        }