@@ -20,20 +20,13 @@ public class ParameterCanBeByValInspectionTests
20
20
[ TestCategory ( "Inspections" ) ]
21
21
public void ParameterCanBeByVal_NoResultForByValObjectInInterfaceImplementationProperty ( )
22
22
{
23
- const string modelCode = @"
24
- Option Explicit
25
- Public Property Get Foo() As Integer
26
- Foo = 42
27
- End Property
28
- " ;
29
-
30
23
const string interfaceCode = @"
31
24
Option Explicit
32
25
33
- Public Property Get Model() As ModelClass
26
+ Public Property Get Model() As Object
34
27
End Property
35
28
36
- Public Property Set Model(ByVal value As ModelClass )
29
+ Public Property Set Model(ByVal value As Object )
37
30
End Property
38
31
39
32
Public Property Get IsCancelled() As Boolean
@@ -57,11 +50,11 @@ Private Property Get IDailySalesView_IsCancelled() As Boolean
57
50
IDailySalesView_IsCancelled = this.IsCancelled
58
51
End Property
59
52
60
- Private Property Set IDailySalesView_Model(ByVal value As DailySalesModel )
53
+ Private Property Set IDailySalesView_Model(ByVal value As Object )
61
54
Set this.Model = value
62
55
End Property
63
56
64
- Private Property Get IDailySalesView_Model() As DailySalesModel
57
+ Private Property Get IDailySalesView_Model() As Object
65
58
Set IDailySalesView_Model = this.Model
66
59
End Property
67
60
@@ -74,7 +67,6 @@ End Sub
74
67
var builder = new MockVbeBuilder ( ) ;
75
68
var vbe = builder . ProjectBuilder ( "TestProject1" , ProjectProtection . Unprotected )
76
69
. AddComponent ( "IView" , ComponentType . ClassModule , interfaceCode )
77
- . AddComponent ( "MyModel" , ComponentType . ClassModule , modelCode )
78
70
. AddComponent ( "MyForm" , ComponentType . UserForm , implementationCode )
79
71
. MockVbeBuilder ( ) . Build ( ) ;
80
72
0 commit comments