コード例 #1
0
        public void ContainerIsolationGeneratesRuntimeOption(ContainerIsolationTechnology isolationTechnology, string expectedIsolationParameter)
        {
            var prms = new ContainerCreateParams {
                Isolation = isolationTechnology
            };
            var opts = prms.ToString();

            Assert.IsTrue(opts.Contains($" --isolation {expectedIsolationParameter}"));
        }
コード例 #2
0
        public void NvidiaRuntimeGeneratesRuntimeOption()
        {
            var prms = new ContainerCreateParams {
                Runtime = ContainerRuntime.Nvidia
            };
            var opts = prms.ToString();

            Assert.IsTrue(opts.Contains(" --runtime=nvidia"));
        }