Example #1
0
        public void DontFailIfNoContestAvailable()
        {
            SetupContext();
            var context    = UserAssembliesProvider.Restore();
            var assemblies = context.GetAssemblies();

            Assert.AreEqual(0, assemblies.Count());
        }
Example #2
0
        public void RestoreContext()
        {
            var ctxName = SetupContext();

            UserAssembliesProvider.CreateForCurrentAssemblyContext(TwoAssemblies);
            var context    = UserAssembliesProvider.Restore();
            var assemblies = context.GetAssemblies();

            Assert.IsTrue(assemblies.All(p => p.Contains(Path.GetTempPath())));
            Assert.IsTrue(assemblies.All(p => p.Contains(ctxName)));
            Assert.AreEqual(2, assemblies.Count());
        }