public void DeleteAll_ShouldReturn_NonNull_Boolean() { //Act IWinner winner = new Winner(); bool result = winner.DeleteAll(); //Assert Assert.IsInstanceOfType(result, typeof (bool)); }
public void DeleteAll_ShouldReturn_NonNull_Boolean() { //Arrange _mockRepo.Expect(x => x.DeleteAll()).Return(true).Repeat.Once(); _mockRepository.ReplayAll(); //Act IWinner Winner = new Winner(_mockRepo); bool result = Winner.DeleteAll(); //Assert _mockRepository.VerifyAll(); Assert.IsInstanceOfType(result, typeof(bool)); }