Esempio n. 1
0
        private static string GetNextTestMethodName(VBComponent component)
        {
            var names = component.TestMethods().Select(test => test.QualifiedMemberName.MemberName);
            var index = names.Count(n => n.StartsWith(TestMethodBaseName)) + 1;

            return(string.Concat(TestMethodBaseName, index));
        }
        private static string GetNextTestMethodName(VBComponent component)
        {
            var names = component.TestMethods().Select(test => test.QualifiedMemberName.MemberName);
            var index = names.Count(n => n.StartsWith(TestMethodBaseName)) + 1;

            return string.Concat(TestMethodBaseName, index);
        }