public void RemoveBasketForNullOwnerWillThrow(BasketManager sut) { // Fixture setup // Exercise system and verify outcome Assert.Throws<ArgumentNullException>(() => sut.RemoveBasket(null)); // Teardown }
public void RemoveBasketForNullOwnerWillThrow(BasketManager sut) { // Fixture setup // Exercise system and verify outcome Assert.Throws <ArgumentNullException>(() => sut.RemoveBasket(null)); // Teardown }
public void RemoveBasketWillRemoveBasketFromService([Frozen]Mock<IBasketService> basketServiceMock, string owner, BasketManager sut) { // Fixture setup // Exercise system sut.RemoveBasket(owner); // Verify outcome basketServiceMock.Verify(bs => bs.Empty(It.Is<IPrincipal>(p => p.Identity.Name == owner))); // Teardown }
public void RemoveBasketWillRemoveBasketFromService([Frozen] Mock <IBasketService> basketServiceMock, string owner, BasketManager sut) { // Fixture setup // Exercise system sut.RemoveBasket(owner); // Verify outcome basketServiceMock.Verify(bs => bs.Empty(It.Is <IPrincipal>(p => p.Identity.Name == owner))); // Teardown }
void LateUpdate() { Vector2 currentPosition = transform.position; if (currentPosition.y <= bottomY) { Destroy(gameObject); basketManager.RemoveBasket(); } }