Exemplo n.º 1
0
 public void WhenStringVersionHasSpecialValueVersionShouldBeEqualToNormalAndSpecialVersionShouldBeSet()
 {
     var p = new PackageReference("packageId", new FrameworkName(".NETFramework,Version=v4.0"), "1.0.1-alpha");
     p.Version.ShouldEqual(new Version("1.0.1"));
     p.SpecialVersion.ShouldEqual("alpha");
 }
Exemplo n.º 2
0
 public void WhenStringVersionIsEmptyVersionShouldBeEmpty()
 {
     var p = new PackageReference("packageId", new FrameworkName(".NETFramework,Version=v4.0"), "");
     p.Version.ShouldEqual(new Version());
 }
Exemplo n.º 3
0
 public void WhenStringVersionHasNormalValueVersionShouldBeEqualToThat()
 {
     var p = new PackageReference("packageId", new FrameworkName(".NETFramework,Version=v4.0"), "1.0.1");
     p.Version.ShouldEqual(new Version("1.0.1"));
 }