public void default_is_read() { Descriptors.ContainsKey(string.Empty).ShouldBeTrue(); Descriptors[string.Empty] .Check(x => x.File.ShouldBe(FileSystem.GetFile("sauron.wrapdesc"))) .Check(x => x.Value.Name.ShouldBe("sauron")); }
public Descriptor GetDescriptor(string type, bool includeEmbeddeds = false) { return(Descriptors.ContainsKey(type) ? Descriptors[type] : !includeEmbeddeds ? null : AllDescriptors.Values.FirstOrDefault(d => d.Type == type && d.Interfaces.Contains("udm.EmbeddedDeployable") && !d.IsVirtual)); }
public void scoped_is_read() { Descriptors.ContainsKey("tests").ShouldBeTrue(); Descriptors["tests"].Value.Dependencies.ShouldHaveCountOf(1); }