示例#1
0
        internal static void AssertInequality(PagingInfo expected, PagingInfo actual)
        {
            Assert.IsFalse(expected == actual);
            Assert.IsTrue(expected != actual);
            Assert.IsFalse(expected.Equals(actual));
            Assert.AreNotEqual(expected, actual);

            Assert.IsFalse(actual == expected);
            Assert.IsTrue(actual != expected);
            Assert.IsFalse(actual.Equals(expected));
            Assert.AreNotEqual(actual, expected);
        }
示例#2
0
        internal static void AssertEquality(PagingInfo expected, PagingInfo actual)
        {
            Assert.IsTrue(expected == actual);
            Assert.IsFalse(expected != actual);
            Assert.IsTrue(expected.Equals(actual));
            Assert.AreEqual(expected, actual);

            Assert.IsTrue(actual == expected);
            Assert.IsFalse(actual != expected);
            Assert.IsTrue(actual.Equals(expected));
            Assert.AreEqual(actual, expected);

            Assert.IsTrue(expected.CurrentPage.Equals(actual.CurrentPage));
            Assert.IsTrue(actual.CurrentPage.Equals(expected.CurrentPage));
            Assert.IsTrue(expected.CurrentPage == actual.CurrentPage);
            Assert.IsTrue(actual.CurrentPage == expected.CurrentPage);
            Assert.IsFalse(expected.CurrentPage != actual.CurrentPage);
            Assert.IsFalse(actual.CurrentPage != expected.CurrentPage);

            Assert.AreEqual(expected.CurrentPage, actual.CurrentPage);
            Assert.AreEqual(expected.CurrentPage.Number, actual.CurrentPage.Number);
            Assert.AreEqual(expected.CurrentPage.Size, actual.CurrentPage.Size);
            Assert.AreEqual(expected.TotalItems, actual.TotalItems);
        }