The .NET Framework version
Inheritance: IFrameworkVersion
コード例 #1
0
        public void GetPathToSdk_ShouldThrowExceptionIfNoSdkFound()
        {
            var frameworkFinder = MockRepository.GenerateMock<IFrameworkFinder>();

            var framework = new FrameworkVersion("",frameworkFinder);
            frameworkFinder.Stub(x => x.PathToSdk()).Return(null);
            framework.GetPathToSdk();
        }
コード例 #2
0
        public void GetPathToSdk_ShouldNotThrowException()
        {
            var frameworkFinder = MockRepository.GenerateMock<IFrameworkFinder>();

            var framework = new FrameworkVersion("", frameworkFinder);
            frameworkFinder.Stub(x => x.PathToSdk()).Return("C:\\temp");
            framework.GetPathToSdk();
        }
コード例 #3
0
        public void GetPathToFrameworkInstall_ShouldThrowExceptionIfNotFound()
        {
            var frameworkFinder = MockRepository.GenerateMock <IFrameworkFinder>();

            var framework = new FrameworkVersion("", frameworkFinder);

            frameworkFinder.Stub(x => x.PathToFrameworkInstall()).Return(null);
            framework.GetPathToFrameworkInstall();
        }
コード例 #4
0
        public void GetPathToSdk_ShouldNotThrowException()
        {
            var frameworkFinder = MockRepository.GenerateMock <IFrameworkFinder>();

            var framework = new FrameworkVersion("", frameworkFinder);

            frameworkFinder.Stub(x => x.PathToSdk()).Return("C:\\temp");
            framework.GetPathToSdk();
        }