public void ConvertToExpendoObject_ConvertsObjectToExpendo()
        {
            var value = _fixture.Create<string>();
            var expected = new {x = value};
            var sut = new DbInfoHandler();

            dynamic result = sut.ConvertToExpendoObject(expected);

            Assert.AreEqual(expected.x, result.x);
        }
        public void ConvertToExpendoObject_ReturnsSelfIfAlreadyIsExpendo()
        {
            var expected = _fixture.Create<ExpandoObject>();
            var sut = new DbInfoHandler();

            var result = sut.ConvertToExpendoObject(expected);

            Assert.AreEqual(expected, result);
        }