コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }