示例#1
0
 public static void CreateWithDefaults() =>
 OptionsTests.AssertOptions(new RockOptions(),
                            OptimizationSetting.Release, CodeFileOption.None,
                            SerializationOption.NotSupported,
                            CachingOption.UseCache, AllowWarning.No,
                            Directory.GetCurrentDirectory());
示例#2
0
 public static void CreateWithOptimizationLevelDebug() =>
 OptionsTests.AssertOptions(new RockOptions(level: OptimizationSetting.Debug),
                            OptimizationSetting.Debug, CodeFileOption.None,
                            SerializationOption.NotSupported,
                            CachingOption.UseCache, AllowWarning.No,
                            Directory.GetCurrentDirectory());
示例#3
0
 public static void CreateWithCachingOptionsGenerateNewVersion() =>
 OptionsTests.AssertOptions(new RockOptions(caching: CachingOption.GenerateNewVersion),
                            OptimizationSetting.Release, CodeFileOption.None,
                            SerializationOption.NotSupported,
                            CachingOption.GenerateNewVersion, AllowWarning.No,
                            Directory.GetCurrentDirectory());
示例#4
0
 public static void CreateWithCodeFileDirectory() =>
 OptionsTests.AssertOptions(new RockOptions(codeFileDirectory: "directory"),
                            OptimizationSetting.Release, CodeFileOption.None,
                            SerializationOption.NotSupported,
                            CachingOption.UseCache, AllowWarning.No,
                            "directory");