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 GetPathToFrameworkInstall_ShouldThrowExceptionIfNotFound() { var frameworkFinder = MockRepository.GenerateMock <IFrameworkFinder>(); var framework = new FrameworkVersion("", frameworkFinder); frameworkFinder.Stub(x => x.PathToFrameworkInstall()).Return(null); framework.GetPathToFrameworkInstall(); }
public void GetPathToSdk_ShouldNotThrowException() { var frameworkFinder = MockRepository.GenerateMock <IFrameworkFinder>(); var framework = new FrameworkVersion("", frameworkFinder); frameworkFinder.Stub(x => x.PathToSdk()).Return("C:\\temp"); framework.GetPathToSdk(); }