Esempio n. 1
0
        public void Equals_ShouldNotBeEqual()
        {
            // arrange
            var a = new PagingOptions(SortBy.StartDate, 2);
            var b = new PagingOptions(SortBy.Distance, 1);

            // act & assert
            Assert.False(a.Equals(b));
        }
Esempio n. 2
0
        public void Equals_ShouldBeEqual()
        {
            // arrange
            var a = new PagingOptions(SortBy.Distance, 1);
            var b = new PagingOptions(SortBy.Distance, 1);

            // act & assert
            Assert.True(a.Equals(b));
        }