| 
Rank: Newbie
 Groups: Registered
Joined: 2/4/2019(UTC)
 Posts: 9
 Location: Germany
 
 Thanks: 4 timesWas thanked: 1 time(s) in 1 post(s)
 
 | 
            
	      
                Hi, I have tried to resolve my left issues in my main application and could not fix the following scenario as extension of the reported issue: Code:
public static IEnumerable<object[]> DoSomethingTestData
{
	get
	{
		yield return new object[] { null, true, "Doubled input" };
	}
}
[DataTestMethod]
[DynamicData(nameof(DoSomethingTestData), DynamicDataSourceType.Property)]
public void DoSomethingTest(ISomeImplementation implementation, bool expected, string description)
{
	// No action required
}
 Now I get the following result: Quote:--------- DoSomethingTest ((null), True, Doubled input)
 Type mismatch on test parameter 1 (parameter should not be null)
 
 It seems to happen if null should be passed to an interface method parameter. Thanks for your support. |