public void EntryOrder()
        {
            var formatter = new RecordChangeAuditFormatter("dummyEntity", "dummyUser", null);

            formatter.AddChangedLookup("B", null, new Resource {Name="r" } );


            var field1 = new IntField().As<Field>();
            field1.Name = "C";

            formatter.AddChangedField(field1, 1, 2);

            var field2 = new IntField().As<Field>();
            field2.Name = "A";

            formatter.AddChangedField(field2, 1, 2);

            var result = formatter.ToString();


            var indexA = result.IndexOf("[A]");
            var indexB = result.IndexOf("[B]");
            var indexC = result.IndexOf("[C]");

            Assert.That(indexA, Is.LessThan(indexB));
            Assert.That(indexB, Is.LessThan(indexC));
        }
        public void FromToTest(Field field, object oldValue, object newValue, string expected)
        {
            
            var formatter = new RecordChangeAuditFormatter("dummyName", "dummyId", null);

            formatter.AddChangedField(field, oldValue, newValue);
            var result = formatter.ToString();

            Assert.That(result.Trim(), Is.EqualTo(expected));
        }