public void GetPathToSdk_ShouldThrowExceptionIfNoSdkFound() { var frameworkFinder = MockRepository.GenerateMock<IFrameworkFinder>(); var framework = new FrameworkVersion("",frameworkFinder); frameworkFinder.Stub(x => x.PathToSdk()).Return(null); framework.GetPathToSdk(); }
public void GetPathToSdk_ShouldNotThrowException() { var frameworkFinder = MockRepository.GenerateMock<IFrameworkFinder>(); var framework = new FrameworkVersion("", frameworkFinder); frameworkFinder.Stub(x => x.PathToSdk()).Return("C:\\temp"); framework.GetPathToSdk(); }
public void GetPathToSdk_ShouldNotThrowException() { var frameworkFinder = MockRepository.GenerateMock <IFrameworkFinder>(); var framework = new FrameworkVersion("", frameworkFinder); frameworkFinder.Stub(x => x.PathToSdk()).Return("C:\\temp"); framework.GetPathToSdk(); }
public void GetPathToSdk_ShouldThrowExceptionIfNoSdkFound() { var frameworkFinder = MockRepository.GenerateMock <IFrameworkFinder>(); var framework = new FrameworkVersion("", frameworkFinder); frameworkFinder.Stub(x => x.PathToSdk()).Return(null); framework.GetPathToSdk(); }