public void BlankProfileDoesntLoadProfiles() { var _runnerContextMock = new Mock <IRunnerContext>(); var _runnerMock = new Mock <IMigrationRunner>(); var _conventionsMock = new Mock <IMigrationConventions>(); _runnerContextMock.SetupGet(x => x.Profile).Returns(string.Empty); _runnerMock.SetupGet(x => x.MigrationAssembly).Returns(typeof(MigrationRunnerTests).Assembly); var profileLoader = new ProfileLoader(_runnerContextMock.Object, _runnerMock.Object, _conventionsMock.Object); profileLoader.ApplyProfiles(); profileLoader.Profiles.Count().ShouldBe(0); }
public void BlankProfileDoesntLoadProfiles() { var runnerContextMock = new Mock <IRunnerContext>(); var runnerMock = new Mock <IMigrationRunner>(); var conventionsMock = new Mock <IMigrationRunnerConventions>(); runnerContextMock.Setup(x => x.Profile).Returns(string.Empty); //_runnerContextMock.VerifyGet(x => x.Profile).Returns(string.Empty); runnerMock.SetupGet(x => x.MigrationAssemblies).Returns(new SingleAssembly(typeof(MigrationRunnerTests).Assembly)); var profileLoader = new ProfileLoader(runnerContextMock.Object, runnerMock.Object, conventionsMock.Object); profileLoader.ApplyProfiles(); profileLoader.Profiles.Count().ShouldBe(0); }