Exemple #1
0
        public void BuildDefault()
        {
            MixinConfiguration ac = DeclarativeConfigurationBuilder.BuildDefaultConfiguration();

            Assert.That(ac, Is.Not.Null);
            Assert.That(ac.ClassContexts.Count, Is.Not.EqualTo(0));
        }
 private static MixinConfiguration BuildMasterConfiguration()
 {
     s_log.Info("Building mixin master configuration...");
     using (StopwatchScope.CreateScope(s_log, LogLevel.Info, "Time needed to build mixin master configuration: {elapsed}."))
     {
         return(DeclarativeConfigurationBuilder.BuildDefaultConfiguration());
     }
 }
Exemple #3
0
        public void BuildDefault_DoesNotLockPersistedFile()
        {
            TypeGenerationHelper.ForceTypeGeneration(typeof(object));
            string[] paths = TypeGenerationHelper.Pipeline.CodeManager.FlushCodeToDisk();

            try
            {
                DeclarativeConfigurationBuilder.BuildDefaultConfiguration();
            }
            finally
            {
                var path = paths[0];
                File.Delete(path);
                File.Delete(path.Replace(".dll", ".pdb"));
            }
        }