コード例 #1
0
        public void After_ShouldReturnTheItemAfter()
        {
            var things = Services.MoveTests.MakeSomeThings().Where(t => t.FooId == 2).AsQueryable(); // thing pos = 1 and 4

            Services.Thing thingAfterPosition1 = things.GetItemAfter(1);
            Assert.AreEqual("four", thingAfterPosition1.Name);
        }
コード例 #2
0
        public void Before_ShouldReturnTheItemBefore()
        {
            var things = Services.MoveTests.MakeSomeThings().Where(t => t.FooId == 2).AsQueryable(); // thing pos = 1 and 4

            Services.Thing thingBeforePosition4 = things.GetItemBefore(4);
            Assert.AreEqual("one", thingBeforePosition4.Name);
        }