private SnapResult MatchSnapshot(object actual) { var snapper = NUnitSnapperFactory.GetNUnitSnapper(); return(_childSnapshotName == null ? snapper.MatchSnapshot(actual) : snapper.MatchChildSnapshot(actual, _childSnapshotName)); }
public override ConstraintResult ApplyTo <TActual>(TActual actual) { SnapResult snapResult; if (_snapshotId != null) { var snapper = NUnitSnapperFactory.GetNUnitSnapper(); snapResult = snapper.MatchSnapshot(actual, _snapshotId); } else { snapResult = MatchSnapshot(actual); } return(new NUnitConstraintResult(this, actual, snapResult)); }