public void AnyMethodUnderTest_With_Multiple_Dependency_Calls <T1, T2>() { var value01 = _anyInterfaceDependency1.AnyGetOnlyProperty; var value02 = _anyInterfaceDependency2.AnyGetOnlyProperty; var value03 = _anyInterfaceDependency3.AnyGetOnlyProperty; var value04 = _anyInterfaceDependency1.AnyGetSetProperty; var value05 = _anyInterfaceDependency2.AnyGetSetProperty; var value06 = _anyInterfaceDependency3.AnyGetSetProperty; _anyInterfaceDependency1.AnyMethodWithSingleGenericType <T1>(); _anyInterfaceDependency2.AnyMethodWithSingleGenericType <T2>(); _anyInterfaceDependency3.AnyMethodWithSingleGenericType <T1>(); _anyInterfaceDependency1.AnyMethodWithMultipleGenericTypes <T1, T2>(); _anyInterfaceDependency2.AnyMethodWithMultipleGenericTypes <T2, T1>(); _anyInterfaceDependency3.AnyMethodWithMultipleGenericTypes <T1, T2>(); var value07 = _anyInterfaceDependency1.AnyMethodWithReturnValue(); var value08 = _anyInterfaceDependency2.AnyMethodWithReturnValue(); var value09 = _anyInterfaceDependency3.AnyMethodWithReturnValue(); var value10 = _anyInterfaceDependency1.AnyMethodWithReturnValueAndParams(value01, value04, value07); var value11 = _anyInterfaceDependency2.AnyMethodWithReturnValueAndParams(value02, value05, value08); var value12 = _anyInterfaceDependency3.AnyMethodWithReturnValueAndParams(value03, value06, value09); _anyInterfaceDependency1.AnyMethodVoid(); _anyInterfaceDependency2.AnyMethodVoid(); _anyInterfaceDependency3.AnyMethodVoid(); _anyInterfaceDependency1.AnyMethodVoidWithParams(value10, value04, value07); _anyInterfaceDependency2.AnyMethodVoidWithParams(value02, value11, value08); _anyInterfaceDependency3.AnyMethodVoidWithParams(value03, value06, value12); }
public void Fails_When_Arrange_Extension_Method_Was_Not_Used() { Assert.Throws <MockException>(() => { _anyInterfaceDependency1.AnyMethodVoid(); _testObject.AnyMethodVoid_With_Call(); _anyInterfaceDependency1.Verify(); }); }