public void Can_Read_Zero_Fixtures_From_Default_Folder() { var reader = Mock<ITestReader>(); var loader = new FolderTestLoader(reader); Assert.That(loader.Fixtures.Count(), Is.EqualTo(0)); }
public void Can_Read_TestFile_Fixtures_From_Test_Folder() { CreateDummyTestFiles(); var mockedReader = Mock<ITestReader>(); mockedReader.Expect(x => x.Create(null)) .Return(Mock<ISqlTestFixture>()) .IgnoreArguments() .Repeat.Times(testFileNames.Count()); mockedReader.Replay(); var loader = new FolderTestLoader(mockedReader) {FolderPath = Path.GetTempPath()}; Assert.That(loader.Fixtures.Count(), Is.EqualTo(testFileNames.Count())); DeleteDummyTestFiles(); }