public void ToDictionary_WhenOnlyProperties_MustReturnDictionaryFilledWithPropertyNameAndValue() { var result = new PropertyOnly { SomeData = "Foo", SomeInt = 2 }.ToDict(); result.Count.Should().Be(2); result["SomeData"].Should().Be("Foo"); result["SomeInt"].Should().Be(2); }
public void ToDictionary_WhenOnlyProperties_MustReturnDictionaryFilledWithPropertyNameAndValue() { var result = new PropertyOnly { SomeData = "Foo", SomeInt = 2 }.ToDict(); result.Count.Should().Be(2); result["SomeData"].Should().Be("Foo"); result["SomeInt"].Should().Be(2); }