예제 #1
0
 public void GivenBDDAddinWithNullResponseFromExtensionHostWhenInstalled()
 {
     _mockExtensionHost = new Mock<IExtensionHost>();
     _mockExtensionHost.Setup(eh => eh.GetExtensionPoint(It.IsAny<string>())).Returns(null as IExtensionPoint);
     var bddAddin = new BDDAddin();
     _result = bddAddin.Install(_mockExtensionHost.Object);
 }
예제 #2
0
 public void GivenBDDAddinWithExtensionPointFromExtensionHostWhenInstalled()
 {
     _mockExtensionHost = new Mock<IExtensionHost>();
     _mockSuiteBuildersExtensionPoint = new Mock<IExtensionPoint>();
     _mockExtensionHost.Setup(eh => eh.GetExtensionPoint("SuiteBuilders")).Returns(_mockSuiteBuildersExtensionPoint.Object);
     _mockTestCaseBuildersExtensionPoint = new Mock<IExtensionPoint>();
     _mockExtensionHost.Setup(eh => eh.GetExtensionPoint("TestCaseBuilders")).Returns(_mockTestCaseBuildersExtensionPoint.Object);
     var bddAddin = new BDDAddin();
     _result = bddAddin.Install(_mockExtensionHost.Object);
 }