/// <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)); }
/// <summary> /// Constructor of the <see cref="SnapshotEnvironmentCleaner"/> class to create /// a new instance. /// </summary> /// <param name="snapshotFileHandler"></param> public SnapshotEnvironmentCleaner(ISnapshotFileHandler snapshotFileHandler) { _snapshotFileHandler = snapshotFileHandler; }