public static XElement CreatePropertyGetterWithMethodSignature(string methodSignature)
		{
			var builder = new CodeCoverageMethodXElementBuilder(methodSignature);
			builder.SetSetterAttribute(false);
			builder.SetGetterAttribute(true);
			return builder.MethodElement;
		}
Beispiel #2
0
        public static XElement CreateMethod(string className, string methodName, string returnType)
        {
            string methodSignature = String.Format("{0} {1}::{2}()", returnType, className, methodName);
            var    builder         = new CodeCoverageMethodXElementBuilder(methodSignature);

            return(builder.MethodElement);
        }
Beispiel #3
0
        public static XElement CreatePropertyGetterWithMethodSignature(string methodSignature)
        {
            var builder = new CodeCoverageMethodXElementBuilder(methodSignature);

            builder.SetSetterAttribute(false);
            builder.SetGetterAttribute(true);
            return(builder.MethodElement);
        }
		public static XElement CreateMethod(string className, string methodName, string returnType)
		{
			string methodSignature = String.Format("{0} {1}::{2}()", returnType, className, methodName);
			var builder = new CodeCoverageMethodXElementBuilder(methodSignature);
			return builder.MethodElement;
		}
		void CreateMethodElementThatHasNoNameElement()
		{
			var builder = new CodeCoverageMethodXElementBuilder(String.Empty);
			builder.MethodElement.RemoveNodes();
			CreateMethod(builder.MethodElement);
		}
		void CreateMethodWithSignature(string methodSignature)
		{
			var builder = new CodeCoverageMethodXElementBuilder(methodSignature);
			CreateMethod(builder.MethodElement);
		}