public void GetHashCode_Different_NonWebLocator() { var a = new WebLocator("hello", By.Id("moto")); var b = new object(); int codeA = a.GetHashCode(); int codeB = b.GetHashCode(); codeA.Should().NotBe(codeB); }
public void GetHashCode_Different_QueryValue() { var a = new WebLocator("hello", By.Id("moto")); var b = new WebLocator("hello", By.Id("goodbye")); int codeA = a.GetHashCode(); int codeB = b.GetHashCode(); codeA.Should().NotBe(codeB); }
public void GetHashCode_Same() { var a = new WebLocator("hello", By.Id("moto")); var b = new WebLocator("hello", By.Id("moto")); int codeA = a.GetHashCode(); int codeB = b.GetHashCode(); codeA.Should().Be(codeB); }