public FactClassicDotNetOnlyAttribute(string skipReason)
 {
     // ReSharper disable once VirtualMemberCallInConstructor
     if (!RuntimeInformation.IsClassic())
     {
         Skip = skipReason;
     }
 }
Exemple #2
0
        public void UserCanSpecifyCustomBuildConfiguration()
        {
            var toolchain = RuntimeInformation.IsClassic()
                ? CsProjClassicNetToolchain.Net46 // no support for Roslyn toolchain for this feature
                : CsProjCoreToolchain.Current.Value;

            var jobWithCustomConfiguration = Job.Dry.WithCustomBuildConfiguration("CUSTOM").With(toolchain);
            var config = CreateSimpleConfig(job: jobWithCustomConfiguration);

            CanExecute <CustomBuildConfiguraiton>(config);
        }