Exemple #1
0
        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);
        }
Exemple #2
0
        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);
        }
Exemple #3
0
        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);
        }