public void ToDictionary_WithEmptyObject()
        {
            var value = new { };

            var actual = ObjectToDictionaryConverter.ToDictionary(value);

            //Assert
            actual.Should().BeEmpty();
        }
        public void ToDictionary_WithObject()
        {
            var value = new { First = 1, Second = 2, Third = 3 };

            var actual = ObjectToDictionaryConverter.ToDictionary(value);

            //Assert
            actual.Should().Contain("First", 1);
            actual.Should().Contain("Second", 2);
            actual.Should().Contain("Third", 3);
        }
        public void ToDictionary_WithNull()
        {
            Action action = () => ObjectToDictionaryConverter.ToDictionary(null);

            action.ShouldThrowArgumentNullException();
        }