示例#1
0
 protected SnapperCore(ISnapshotStore snapshotStore, ISnapshotUpdateDecider snapshotUpdateDecider,
                       ISnapshotComparer snapshotComparer)
 {
     _snapshotStore         = snapshotStore;
     _snapshotUpdateDecider = snapshotUpdateDecider;
     _snapshotComparer      = snapshotComparer;
 }
示例#2
0
 public NUnitSnapper(ISnapshotStore snapshotStore, ISnapshotUpdateDecider snapshotUpdateDecider,
                     ISnapshotComparer snapshotComparer, SnapshotIdResolver snapshotIdResolver,
                     JsonSnapshotSanitiser snapshotSanitiser)
     : base(snapshotStore, snapshotUpdateDecider, snapshotComparer)
 {
     _snapshotIdResolver = snapshotIdResolver;
     _snapshotSanitiser  = snapshotSanitiser;
 }
示例#3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SnapshotAssert"/> class.
 /// </summary>
 /// <param name="snapshotSerializer">The serializer of the snapshot object.</param>
 /// <param name="snapshotFileHandler">The snapshot file handler.</param>
 /// <param name="snapshotEnvironmentCleaner">The environment cleanup utility.</param>
 /// <param name="snapshotComparer">The snaspshot text comparer.</param>
 public SnapshotAssert(ISnapshotSerializer snapshotSerializer,
                       ISnapshotFileHandler snapshotFileHandler,
                       ISnapshotEnvironmentCleaner snapshotEnvironmentCleaner,
                       ISnapshotComparer snapshotComparer)
 {
     _snapshotSerializer = snapshotSerializer
                           ?? throw new ArgumentNullException(nameof(snapshotSerializer));
     _snapshotFileHandler = snapshotFileHandler
                            ?? throw new ArgumentNullException(nameof(snapshotFileHandler));
     _snapshotEnvironmentCleaner = snapshotEnvironmentCleaner
                                   ?? throw new ArgumentNullException(nameof(snapshotEnvironmentCleaner));
     _snapshotComparer = snapshotComparer
                         ?? throw new ArgumentNullException(nameof(snapshotComparer));
 }
示例#4
0
 public SnapperCoreProxy(ISnapshotStore snapshotStore,
                         ISnapshotUpdateDecider snapshotUpdateDecider,
                         ISnapshotComparer snapshotComparer)
     : base(snapshotStore, snapshotUpdateDecider, snapshotComparer)
 {
 }
示例#5
0
 public JsonSnapshotComparerTests()
 {
     _comparer = new JsonSnapshotComparer();
 }