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"));
 }
예제 #2
0
 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));
 }
예제 #3
0
 public void scoped_is_read()
 {
     Descriptors.ContainsKey("tests").ShouldBeTrue();
     Descriptors["tests"].Value.Dependencies.ShouldHaveCountOf(1);
 }