Ejemplo n.º 1
0
        public void TestIsWithinBasin()
        {
            Watershed watershed = mocks.CreateMock<Watershed>();
            Expect.Call(watershed.IsWithinBasin()).Return(true);
            mocks.ReplayAll();

            ClosestWatershedToPlace closestWatershedToPlace = new ClosestWatershedToPlace();
            closestWatershedToPlace.Watershed = watershed;
            Assert.IsTrue(closestWatershedToPlace.IsWithinBasin());

            mocks.VerifyAll();
        }
Ejemplo n.º 2
0
 public void TestIsWithinBasinWhenWatershedIsNull()
 {
     ClosestWatershedToPlace closestWatershedToPlace = new ClosestWatershedToPlace();
     Assert.IsFalse(closestWatershedToPlace.IsWithinBasin());
 }