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"); }
public void WhenStringVersionIsEmptyVersionShouldBeEmpty() { var p = new PackageReference("packageId", new FrameworkName(".NETFramework,Version=v4.0"), ""); p.Version.ShouldEqual(new Version()); }
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")); }