public void MergeArrayTest() { SnapshotTester <Snapshot> prepareA = new SnapshotTester <Snapshot>(); prepareA.Var("v").Index().Write("A.?"); prepareA.Var("v").Index("a").Write("A.1"); prepareA.Var("v").Index("b").Write("2"); prepareA.Var("v").Index("c").Write("A.3"); prepareA.Var("v").Index("e").Index("1").Write("A.4"); prepareA.Var("v").Index("f").Index("1").Write("A.5"); prepareA.Var("v").Index("g").Index("1").Write("A.6"); prepareA.Var().Index("1").Write("A.7"); prepareA.Test(); SnapshotTester <Snapshot> prepareB = new SnapshotTester <Snapshot>(); prepareB.Var("v").Index("a").Write("B.1"); prepareB.Var("v").Index("b").Write("2"); prepareB.Var("v").Index("d").Write("B.3"); prepareB.Var("v").Index("e").Index("1").Write("B.4"); prepareB.Var("v").Index("g").Write("B.6"); prepareB.Var("a").Index("1").Write("B.7"); prepareB.Var("b").Write("B.8"); prepareB.Test(); SnapshotTester <Snapshot> tester = new SnapshotTester <Snapshot>(); tester.SetLogger(new FileLogger("MergeArrayTest.txt")); tester.Merge(prepareA.Snapshot, prepareB.Snapshot); tester.Test(); }
public void MergeVariableTest() { SnapshotTester <Snapshot> prepareA = new SnapshotTester <Snapshot>(); prepareA.Var("a").Write("A.1"); prepareA.Var("b").Write("2"); prepareA.Var("c").Write("A.3"); prepareA.Test(); SnapshotTester <Snapshot> prepareB = new SnapshotTester <Snapshot>(); prepareB.Var("a").Write("B.1"); prepareB.Var("b").Write("2"); prepareB.Var("d").Write("B.3"); prepareB.Test(); SnapshotTester <Snapshot> tester = new SnapshotTester <Snapshot>(); tester.SetLogger(new FileLogger("MergeVariableTest.txt")); tester.Merge(prepareA.Snapshot, prepareB.Snapshot); tester.Test(); }