Exemplo n.º 1
0
        public void IsSupersetOfWorksCorrectly(KspVersionRange left, KspVersionRange right, bool expected)
        {
            // Act
            var result = left.IsSupersetOf(right);

            // Assert
            Assert.That(result, Is.EqualTo(expected));
        }
Exemplo n.º 2
0
        public void IsSupersetOfThrowsOnNullParameter()
        {
            // Arrange
            var sut = new KspVersionRange(new KspVersionBound(), new KspVersionBound());

            // Act
            TestDelegate act = () => sut.IsSupersetOf(null);

            // Assert
            Assert.That(act, Throws.Exception);
        }