示例#1
0
        public void ActualInstall() {
            // Use actual files and registry
            var svr = new SupportedRVersionRange(3, 2, 3, 9);
            var engine = new RInstallation().GetCompatibleEngines(svr).FirstOrDefault();

            engine.Should().NotBeNull();
            engine.Name.Should().NotBeNullOrEmpty();

            engine.Version.Major.Should().BeGreaterOrEqualTo(3);
            engine.Version.Minor.Should().BeGreaterOrEqualTo(2);

            Directory.Exists(engine.InstallPath).Should().BeTrue();
            Directory.Exists(engine.BinPath).Should().BeTrue();

            string path = Path.Combine(engine.InstallPath, @"bin\x64");
            Directory.Exists(path).Should().BeTrue();
        }
示例#2
0
        public void ActualInstall()
        {
            // Use actual files and registry
            var svr    = new SupportedRVersionRange(3, 2, 3, 9);
            var engine = new RInstallation().GetCompatibleEngines(svr).FirstOrDefault();

            engine.Should().NotBeNull();
            engine.Name.Should().NotBeNullOrEmpty();

            engine.Version.Major.Should().BeGreaterOrEqualTo(3);
            engine.Version.Minor.Should().BeGreaterOrEqualTo(2);

            Directory.Exists(engine.InstallPath).Should().BeTrue();
            Directory.Exists(engine.BinPath).Should().BeTrue();

            string path = Path.Combine(engine.InstallPath, @"bin\x64");

            Directory.Exists(path).Should().BeTrue();
        }