Ejemplo n.º 1
0
		public static ParameterDefinition Create(string name, System.Type type, ParameterPurpose purpose, string serializedValue = null)
		{
			ParameterDefinition parameterDefinition = new ParameterDefinition()
			{
				Name = name,
				Type = type,
				Purpose = purpose,
				SerializedDefaultValue = serializedValue
			};
			return parameterDefinition;
		}
Ejemplo n.º 2
0
 public void TestThatParameterIndexIsIdentifiedCorrectlyForStringAssert(string methodName, ParameterPurpose[] types)
 {
     var method = typeof(StringAssert).FindMethod(methodName);
     VerifyExpectedTypes(method, types);
 }
Ejemplo n.º 3
0
 private static bool IsPerhapsExpectation(ParameterPurpose parameterType)
 {
     return parameterType == ParameterPurpose.Expected || parameterType == ParameterPurpose.ExpectedOrActual;
 }
Ejemplo n.º 4
0
 public void TestThatParameterIndexIsIdentifiedCorrectlyForStringAssert(string methodName, ParameterPurpose[] types)
 {
     var method = FindTypeInMSTestAssembly("Microsoft.VisualStudio.TestTools.UnitTesting.StringAssert").FindMethod(methodName);
     VerifyExpectedTypes(method, types);
 }