コード例 #1
0
    public void Major_minor_missingPatch()
    {
        ShortVersion shortVersion;
        var          result = ShortVersionParser.TryParse("1.2", out shortVersion);

        Assert.IsTrue(result);
        Assert.AreEqual(1, shortVersion.Major);
        Assert.AreEqual(2, shortVersion.Minor);
        Assert.AreEqual(0, shortVersion.Patch);
    }
コード例 #2
0
    public void Major_minor_missingPatch()
    {
        int minor;
        int major;
        int patch;
        var result = ShortVersionParser.TryParse("1.2", out major, out minor, out patch);

        Assert.IsTrue(result);
        Assert.AreEqual(1, major);
        Assert.AreEqual(2, minor);
        Assert.AreEqual(0, patch);
    }