public void CompareNotNullAndNullVersion() { ReleaseVersion v1 = new ReleaseVersion("1.0.0"); ReleaseVersion v2 = null; Assert.Equal(1, ReleaseVersion.Compare(v1, v2)); }
public void CompareReturnZeroIfReferenceEqual() { ReleaseVersion v1 = new ReleaseVersion("1.0.0"); ReleaseVersion v2 = v1; Assert.Equal(0, ReleaseVersion.Compare(v1, v2)); }