示例#1
0
        public void Replace_ReplaceFields_ReturnReplacedFieldsList()
        {
            var fieldsContainer = new FieldsContainer();

            fieldsContainer.Add(FieldName, Value);
            var expected = new List <FieldInfo> {
                new FieldInfo {
                    Name = "Exception", Value = "Critical"
                }
            };

            fieldsContainer.Replace(expected);

            fieldsContainer.Fields.Should().BeEquivalentTo(expected);
        }