本文整理汇总了C#中PagingInfo.Equals方法的典型用法代码示例。如果您正苦于以下问题:C# PagingInfo.Equals方法的具体用法?C# PagingInfo.Equals怎么用?C# PagingInfo.Equals使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PagingInfo
的用法示例。
在下文中一共展示了PagingInfo.Equals方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: AssertInequality
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: AssertEquality
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);
}