public void TestThatIsManipulatingTableThrowsArgumentNullExceptionIfTableNameIsEmpty() { var fixture = new Fixture(); var dataManipulator = new MyDataManipulator(fixture.CreateAnonymous <string>()); Assert.That(dataManipulator, Is.Not.Null); Assert.Throws <ArgumentNullException>(() => dataManipulator.IsManipulatingTable(string.Empty)); }
public void TestThatIsManipulatingTableReturnsFalseIfTableNameDoesNotMatchTableNameForDataManipulator() { var fixture = new Fixture(); var tableName = fixture.CreateAnonymous <string>(); var dataManipulator = new MyDataManipulator(tableName); Assert.That(dataManipulator, Is.Not.Null); Assert.That(dataManipulator.IsManipulatingTable(fixture.CreateAnonymous <string>()), Is.False); }