I'm new to Rhino mock and I would like to know if the test I did is not fake testing, as I've read a lot about it. Are there any improvements that need to be done?
[Test] public void GenerateDateTable_Returns_DataTableOfGroup() { //Arrange var groupStub = MockRepository.GenerateStub<Group>(); var groupEnumerable = new[] { groupStub }; var mockgroup = MockRepository.GenerateMock<FillTableRow<Group>>(); mockgroup.Replay(); //Act mockgroup.GenerateDateTable(groupEnumerable); //Assert Assert.IsTrue(mockgroup.DataTableBatch.Columns.Count == 3); } public class FillTableRow<T> { public DataTable DataTableBatch { get; set; } public DataTable GenerateDateTable(IEnumerable<T> enumerable) { IDbObjectFactory<T> tableFactory = new TableFactory<T>(); DataTableBatch = (DataTable)tableFactory.GetDbObject(); foreach (var row in enumerable) { AddRow(row); } return DataTableBatch; } }