public Builder(Assembly referenceAssembly, Assembly newAssembly) { Mock <IComparerContext> comparerContextMock = new Mock <IComparerContext> { DefaultValue = DefaultValue.Mock }; MockSetup.SetupMock(comparerContextMock); _comparerResult = new AssemblyComparer(referenceAssembly, newAssembly, comparerContextMock.Object).Compare(); }
public Builder(Assembly referenceAssembly, Assembly newAssembly) { _comparerResultMock = new Mock <IComparerResult>(); Mock <IComparerContext> comparerContextMock = new Mock <IComparerContext> { DefaultValue = DefaultValue.Mock }; comparerContextMock.Setup(context => context.CreateComparerResult(ResultContext.Property, It.IsAny <string>())).Returns(_comparerResultMock.Object); MockSetup.SetupMock(comparerContextMock); new AssemblyComparer(referenceAssembly, newAssembly, comparerContextMock.Object).Compare(); }
public Builder(Assembly referenceAssembly, Assembly newAssembly) { _comparerResultMock = new Mock <IComparerResult>(); Mock <IComparerContext> comparerContextMock = new Mock <IComparerContext> { DefaultValue = DefaultValue.Mock }; comparerContextMock.Setup(context => context.CreateComparerResult(It.IsIn(ResultContext.Class, ResultContext.Enum, ResultContext.Interface, ResultContext.AbstractClass), It.IsAny <string>())).Returns(_comparerResultMock.Object); MockSetup.SetupMock(comparerContextMock); new AssemblyComparer(referenceAssembly, newAssembly, comparerContextMock.Object).Compare(); }