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