public void MethodHasParameters() { List<MockAttribute> attributes = new List<MockAttribute>(); attributes.Add(new MockAttribute("Test")); MockMethod mockMethod = CreateMockMethod(attributes); MockParameter mockParameter = new MockParameter(); mockMethod.Parameters.Add(mockParameter); Assert.IsFalse(TestMethod.IsTestMethod(mockMethod)); }
public void IsTestMember_MethodHasParameters_ReturnsFalse() { CreateTestFramework(); var testAttribute = new MockAttribute("Test"); MockMethod mockMethod = MockMethod.CreateMockMethodWithAttribute(testAttribute); var mockParameter = new MockParameter(); mockMethod.Parameters.Add(mockParameter); bool result = testFramework.IsTestMember(mockMethod); Assert.IsFalse(result); }
public void IsTestMethodReturnsFalseWhenMethodHasHasParameters() { MockAttribute testAttribute = new MockAttribute("Test"); MockMethod mockMethod = MockMethod.CreateMockMethodWithAttribute(testAttribute); MockParameter mockParameter = new MockParameter(); mockMethod.Parameters.Add(mockParameter); Assert.IsFalse(testFramework.IsTestMethod(mockMethod)); }