public override int GetHashCode()
 {
     return(ExecutionType.GetHashCode() +
            BrowserType.GetHashCode() +
            ShouldCaptureHttpTraffic.GetHashCode() +
            Size.GetHashCode() +
            IsLighthouseEnabled.GetHashCode() +
            ShouldAutomaticallyScrollToVisible.GetHashCode());
 }
Esempio n. 2
0
        public override bool Equals(object obj)
        {
            var browserConfiguration = (BrowserConfiguration)obj;

            return(ExecutionType.Equals(browserConfiguration?.ExecutionType) &&
                   BrowserType.Equals(browserConfiguration?.BrowserType) &&
                   ShouldCaptureHttpTraffic.Equals(browserConfiguration?.ShouldCaptureHttpTraffic) &&
                   Size.Equals(browserConfiguration?.Size) &&
                   ShouldAutomaticallyScrollToVisible.Equals(browserConfiguration?.ShouldAutomaticallyScrollToVisible));
        }
Esempio n. 3
0
 public bool Equals(BrowserConfiguration other) => ExecutionType.Equals(other?.ExecutionType) &&
 BrowserType.Equals(other?.BrowserType) &&
 ShouldCaptureHttpTraffic.Equals(other?.ShouldCaptureHttpTraffic) &&
 Size.Equals(other?.Size) &&
 IsLighthouseEnabled.Equals(other?.IsLighthouseEnabled) &&
 ShouldAutomaticallyScrollToVisible.Equals(other?.ShouldAutomaticallyScrollToVisible);