public void ContainerIsolationGeneratesRuntimeOption(ContainerIsolationTechnology isolationTechnology, string expectedIsolationParameter) { var prms = new ContainerCreateParams { Isolation = isolationTechnology }; var opts = prms.ToString(); Assert.IsTrue(opts.Contains($" --isolation {expectedIsolationParameter}")); }
public void NvidiaRuntimeGeneratesRuntimeOption() { var prms = new ContainerCreateParams { Runtime = ContainerRuntime.Nvidia }; var opts = prms.ToString(); Assert.IsTrue(opts.Contains(" --runtime=nvidia")); }