ApprovalTests.Reporters.GenericDiffReporter.AssertDots C# (CSharp) Method

AssertDots() private static method

private static AssertDots ( string extensionsWithDots ) : void
extensionsWithDots string
return void
        private static void AssertDots(string[] extensionsWithDots)
        {
            var wrong = extensionsWithDots.Where(s => !s.StartsWith("."));
            if (wrong.Count() > 0)
            {
                throw new ArgumentException("The following extensions don't start with dots: " +
                                            wrong.ToReadableString());
            }
        }