Exemplo n.º 1
0
        public void OriginalHasNoEntries()
        {
            string           orig   = @"";
            string           mod    = @"<entry id='three'>
                            </entry>
                            <entry id='one' guid='0ae89610-fc01-4bfd-a0d6-1125b7281dd1' greeting='hello'>
                            </entry>";
            LiftChangeReport report = GetChanges(orig, mod);

            Assert.AreEqual(LiftChangeReport.ChangeType.New, report.GetChangeType("one"));
            Assert.AreEqual(LiftChangeReport.ChangeType.New, report.GetChangeType("three"));
        }
Exemplo n.º 2
0
        public void AddedEntryDetected()
        {
            string           orig   = @"<entry id='one' guid='0ae89610-fc01-4bfd-a0d6-1125b7281dd1' greeting='hi'>
                            </entry>
                            <entry id='two' guid='0ae89610-fc01-4bfd-a0d6-1125b7281d22'></entry>";
            string           mod    = @"<entry id='three'>
                            </entry>
                            <entry id='one' guid='0ae89610-fc01-4bfd-a0d6-1125b7281dd1' greeting='hello'>
                            </entry>";
            LiftChangeReport report = GetChanges(orig, mod);

            Assert.AreEqual(LiftChangeReport.ChangeType.New, report.GetChangeType("three"));
        }