Esempio n. 1
0
 public void ConvertDependenciesToStringWhenDependsOnFramework()
 {
     Assert.Equal("::.NETStandard2.0",
                  PackageExtensions.ToDependenciesString(new Core.Entities.PackageDependency[1] {
         new Core.Entities.PackageDependency()
         {
             TargetFramework = ".NETStandard2.0"
         }
     }));
 }
Esempio n. 2
0
 public void ConvertDependenciesToStringWhenFrameworkSpecific()
 {
     Assert.Equal("Consul:[0.7.2.6, ):.NETStandard2.0|YamlDotNet:[5.1.0, ):.NETStandard2.0",
                  PackageExtensions.ToDependenciesString(new Core.Entities.PackageDependency[2] {
         new Core.Entities.PackageDependency()
         {
             Id = "Consul", VersionRange = "[0.7.2.6, )", TargetFramework = ".NETStandard2.0"
         },
         new Core.Entities.PackageDependency()
         {
             Id = "YamlDotNet", VersionRange = "[5.1.0, )", TargetFramework = ".NETStandard2.0"
         }
     }));
 }
Esempio n. 3
0
 public void ConvertDependenciesToStringWhenNull()
 {
     Assert.Null(PackageExtensions.ToDependenciesString(null));
 }
Esempio n. 4
0
 public void ConvertDependenciesToStringWhenEmpty()
 {
     Assert.Null(PackageExtensions.ToDependenciesString(new Core.Entities.PackageDependency[0]));
 }