public void TestThatMapRelationsDoesNotCloneDataProvider() { IPaymentProxy sut = CreateSut(); Assert.That(sut, Is.Not.Null); IFoodWasteDataProvider dataProvider = CreateFoodWasteDataProvider(); sut.MapRelations(dataProvider); dataProvider.AssertWasNotCalled(m => m.Clone()); }
public void TestThatMapRelationsThrowsArgumentNullExceptionIfDataProviderIsNull() { IPaymentProxy sut = CreateSut(); Assert.That(sut, Is.Not.Null); ArgumentNullException result = Assert.Throws <ArgumentNullException>(() => sut.MapRelations(null)); TestHelper.AssertArgumentNullExceptionIsValid(result, "dataProvider"); }