void Copy_Values_From_Constructor_And_From_Append() { var originalValues = new Dictionary <string, int>() { ["A"] = 1, ["B"] = 2, }; var appendValues = new Dictionary <string, int>() { ["A"] = 3, ["C"] = 4, }; var expectedValues = new Dictionary <string, int>() { ["A"] = 1, ["B"] = 2, ["C"] = 4, }; var info = new TelemetryInfo <int>(originalValues); info.Append(appendValues); Check.That(info.GetDictionary()).ContainsExactly(expectedValues); }
void Throw_Exception_When_Appending_Null_Dictionary() { var info = new TelemetryInfo <int>(); Check.ThatCode(() => info.Append(null)).Throws <ArgumentNullException>(); }