コード例 #1
0
        public void ConvertFromDictWithDataTest(Dictionary <string, string> data, IList <string> target)
        {
            var par = new LegacyCustomParams();

            par.FromDictionary(data);
            Assert.Equal(target, par.Items);
        }
コード例 #2
0
        public void When_Convert_From_Dict_Should_Return_The_Expected_Result(Dictionary <string, string> data, IList <string> target)
        {
            var par = new LegacyCustomParams();

            par.FromDictionary(data);
            par.Items.Should().BeEquivalentTo(target);
        }