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; }
public void TestThatParameterIndexIsIdentifiedCorrectlyForStringAssert(string methodName, ParameterPurpose[] types) { var method = typeof(StringAssert).FindMethod(methodName); VerifyExpectedTypes(method, types); }
private static bool IsPerhapsExpectation(ParameterPurpose parameterType) { return parameterType == ParameterPurpose.Expected || parameterType == ParameterPurpose.ExpectedOrActual; }
public void TestThatParameterIndexIsIdentifiedCorrectlyForStringAssert(string methodName, ParameterPurpose[] types) { var method = FindTypeInMSTestAssembly("Microsoft.VisualStudio.TestTools.UnitTesting.StringAssert").FindMethod(methodName); VerifyExpectedTypes(method, types); }