public void ConvertFromDictWithDataTest(Dictionary <string, string> data, IList <string> target) { var par = new LegacyCustomParams(); par.FromDictionary(data); Assert.Equal(target, par.Items); }
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); }
public void ConvertToDictWithDataTest(IList <string> data, Dictionary <string, string> target) { var par = new LegacyCustomParams(); foreach (var s in data) { par.Items.Add(s); } ; var dict = new Dictionary <string, string>(); par.ToDictionary(dict); Assert.Equal(target, dict); }
public void When_Convert_To_Dict_Should_Return_The_Expected_Result(IList <string> data, Dictionary <string, string> target) { var par = new LegacyCustomParams(); foreach (var s in data) { par.Items.Add(s); } ; var dict = new Dictionary <string, string>(); par.ToDictionary(dict); dict.Should().BeEquivalentTo(target); }