// ReSharper disable InconsistentNaming public void DsfDatabaseActivity_UnitTest_BeforeExecutionStart_CreatesServiceExecutionAndInvokesServiceExecutionBeforeExecution() // ReSharper restore InconsistentNaming { //init var databaseActivity = new MockDsfDatabaseActivity(); var dataObj = new Mock<IDSFDataObject>(); //exe databaseActivity.MockBeforeExecutionStart(dataObj.Object); //assert Assert.IsNotNull(databaseActivity.ServiceExecution, "DsfDatabaseActivity did not construct a correct DatabaseServiceExecution."); Assert.AreSame(dataObj.Object, databaseActivity.ServiceExecution.DataObj, "Data Object not assigned to DatabaseServiceExecution."); }