ArchiMetrics.CodeReview.Rules.Tests.Rules.Trivia.FileHeaderInspectionTests.WhenExceptionsAreDefinedThenHandlesCommentsInAutoGeneratedCode C# (CSharp) Method

WhenExceptionsAreDefinedThenHandlesCommentsInAutoGeneratedCode() private method

private WhenExceptionsAreDefinedThenHandlesCommentsInAutoGeneratedCode ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task
        public async Task WhenExceptionsAreDefinedThenHandlesCommentsInAutoGeneratedCode()
        {
            var tree = CSharpSyntaxTree.ParseText(@"//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//     Runtime Version:4.0.30319.1
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

namespace CodeConvertServiceClient.Properties {
	using System;

	/// <summary>
	///   A strongly-typed resource class, for looking up localized strings, etc.
	/// </summary>
	// This class was auto-generated by the StronglyTypedResourceBuilder
	// class via a tool like ResGen or Visual Studio.
	// To add or remove a member, edit your .ResX file then rerun ResGen
	// with the /str option, or rebuild your VS project.
	[global::System.CodeDom.Compiler.GeneratedCodeAttribute(""System.Resources.Tools.StronglyTypedResourceBuilder"", ""4.0.0.0"")]
	[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
	[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
	internal class Resources {

		private static global::System.Resources.ResourceManager resourceMan;

		private static global::System.Globalization.CultureInfo resourceCulture;

		[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute(""Microsoft.Performance"", ""CA1811:AvoidUncalledPrivateCode"")]
		internal Resources() {
		}
	}
}
");
            var root = tree.GetRoot();
            var result = await _inspector.Inspect(string.Empty, string.Empty, root, null, null);

            Assert.Empty(result);
        }
    }