예제 #1
0
    public void GetSmallestPositiveDurationWithNegative()
    {
        var durations = new Durations(2, -1);

        Assert.AreEqual(2, durations.GetSmallestPositiveDuration());
    }
예제 #2
0
    public void GetSmallestPositiveDurationException()
    {
        var durations = new Durations(-2, -1);

        Assert.ThrowsException <NegativeValueException>(() => durations.GetSmallestPositiveDuration());
    }
예제 #3
0
    public void GetSmallestPositiveDuration()
    {
        var durations = new Durations(2, 1);

        Assert.AreEqual(1, durations.GetSmallestPositiveDuration());
    }