Balakin.VSOutputEnhancer.Tests.UnitTests.ClassificationFormatTests.AllFormatsHasDisplayName C# (CSharp) Method

AllFormatsHasDisplayName() private method

private AllFormatsHasDisplayName ( ) : void
return void
        public void AllFormatsHasDisplayName()
        {
            var formatTypes = GetAllExportedFormats().ToList();

            var styleManager = Utils.CreateStyleManager();

            foreach (var formatType in formatTypes) {
                var format = (ClassificationFormatDefinition)Activator.CreateInstance(formatType, styleManager);
                Assert.IsNotNull(format.DisplayName, format.GetType().Name);
                Assert.IsFalse(String.IsNullOrEmpty(format.DisplayName), format.GetType().Name);
            }
        }